the help text says:
The column specified must contain a set of repeating, numeric values that are used to group each set of data points into a series of related scatter points.
A different Character or SymbolIcon (based on the setting of Icon) is used to render each data series related by this grouping column.
How the hell do I do it?... I have searched high and low for some sort of example or instruction but there is nothing. I am deeply frustrated by the lack of useful help text with infragistics controls. What should be an easy to integrate control is becoming a time wasting, trial and error, guessing game. Give us some decent documentation Infragistics!
Here is sample code in using this property:
DataTable dt = new DataTable();
dt.Columns.Add("valx", typeof(int));
dt.Columns.Add("groupby", typeof(int));
dt.Rows.Add("two", 2, 2, 1);
dt.Rows.Add("three", 3, 3, 2);
// UltraChart1.ScatterChart.Icon = Infragistics.UltraChart.Shared.Styles.SymbolIcon.X;
UltraChart1.ScatterChart.GroupByColumn = 3;
UltraChart1.Data.DataSource = dt;
UltraChart1.Data.DataBind();
You will notice that each series or grouping based on the defined column will have a different color and a different icon. You can control the coloring by using the ColorModel off the chart. The icon however is generated by random. If you wanted to use the same icon but differnt colors you would just comment in the line I have commented out. If you wanted to control what icons are used, you would most likely have to make use of a composite chart so that you could define the icon on each scatter chart layer.
There is a bug in the scatter chart. When I bind over 8200 rows to it I get a javascript error... a missing ";"
That is preventing me from seeing all the series I generate throught the groupby column.
What I want to do is change the icon for each series, which in the docs it indicates is both possible and simple.
I have tried to reference the series property to create a series for each of my groupby columns but cannot fathom how to do it.... which also means I cannot set the icon property for each groupby series... which is, I think, what the help text is saying to do.
Here is the code I had already generated:
UltraChart1.DeploymentScenario.FilePath = "~/ChartImages"
UltraChart1.DeploymentScenario.ImageURL = utils.GetSiteRoot & "/ChartImages/scatterchart_#SEQNUM(1000).jpg"
UltraChart1.ScatterChart.ColumnX = 0
UltraChart1.ScatterChart.ColumnY = 1
UltraChart1.Data.UseRowLabelsColumn = True
UltraChart1.Data.RowLabelsColumn = 2
UltraChart1.ScatterChart.UseGroupByColumn = True
UltraChart1.ScatterChart.GroupByColumn = 3
UltraChart1.Axis.X.Labels.SeriesLabels.Visible = False
UltraChart1.Tooltips.FormatString = "<SERIES_LABEL>"
UltraChart1.ScatterChart.ConnectWithLines = False
UltraChart1.ScatterChart.Icon = [Shared].Styles.SymbolIcon.X
UltraChart1.DataSource = value
UltraChart1.DataBind()
Can you please tell me how to use the color model to set color on the scatter graph . i have 3 different values in group by coloumn and i wanto show same symbol with different 3 different colors. you response will be highly appriciated. I am struglling with it from last couple of days......
you can add an array of 3 colors to a CustomLinear color model. Here's an example:ultraChart1.ChartType = ChartType.ScatterChart;ultraChart1.ScatterChart.ColumnX = 0;ultraChart1.ScatterChart.ColumnY = 1;ultraChart1.ScatterChart.GroupByColumn = 2;ultraChart1.ScatterChart.UseGroupByColumn = true;ultraChart1.ScatterChart.Icon = SymbolIcon.Circle;ultraChart1.ScatterChart.ConnectWithLines = true;
ultraChart1.Data.DataSource = new int[,] { {1,1,0},{3,2,0},{6,3,0},{9,2,0}, {2,10,1},{5,15,1},{7,12,1},{10,13,1}, {1,35,2},{4,40,2},{7,33,2},{10,39,2} };
Color[] colors = {Color.Red, Color.Blue, Color.Green };ultraChart1.ColorModel.CustomPalette = colors;ultraChart1.ColorModel.ModelStyle = ColorModels.CustomLinear;
Thanks I appreciate your response