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!
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()
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.