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()
Thanks I appreciate your response
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;
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......
Hi Kim,
I am sure you are right and that the composite chart strategy is the way to change icons. I have set tooltip display to "never" and I no longer get any errors, so I can see all my groupby columns and the icon changing colour... it looks great, so I will leave it there.
Thanks for your help,
Regards
I would try setting UltraChart.Tooltips.Display to Never as it may have something to do with the tooltips that are generated regarding the message you are reporting. I would log the issue with Developer Support so that they may confirm the bug and log it with development on your behalf.
Submit support issue:
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
As for when interpretting the documentation, it could be interpretted in the way you mention or that a different icon will be used and not that a different icon can be specified (except for when you want to use the same one). The way I have done this is in the past is by using a composite chart. This way you can set the icon on each scatter layer that you use.