Hi, yup - I've poured over that page and it really doesnt help me.
the structure that I've indicated above works fine for a AreaGraph (where there is just one set of data, the 'X' coordinate is effectively the ordinal of the data row)
My understanding is that a 'row' of data represents a point on the graph. As I have many points, I have a loop that defines each of these. But I have only two (in this case) lines. How do I define the table/row/graph to be able to represent this data correctly.
Thanks in advance if these are silly questions but I'm new to this.
perhaps this document will clear things up... http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Chart_Working_with_Scatter_Chart_Data.html
not sure what error message you're getting, but i am guessing it's related to invalid data. make sure you meet the requirements in the above topic, and double-check the DataType property of your DataColumns to ensure they have a numeric type.
Hi, you are right, what I thought was obvious last night is not clear at all this morning...
The problem I seem to be having is setting up the chart.
I have DataTable and DataRow objects, I create columns on the DataTable which I understand are required for this chart type. When I try to initialize the row using dummy data I get an error. I've tried using XYSereis, XYDataPoint objects but I need to use the DataRow object ultimatelty inorder to be consistent with the framework I am working in.
What I need clarification on is: given I have a number of data 'series' each with a multitude of points, how should I define, setup and populate the chart?
Hope that actually turns this into a question..
thx
possibly you should try using a ScatterChart with ScatterChart.ConnectWithLines set to True ... instead of a ScatterLineChart.
i'm not sure what you're asking here, though. have you tried creating a chart from this data? if so, does it render OK, do you get an error, or just unexpected results?
Trying that again (Google Chrome and Forum are not friends)
Hi all, I am having a hard time figuring out how to setup and populate a scatterlinechart. I am working within a chartfactory that currently produces BarCharts and areacharts by passing a DataRow object to the UpdateChart method. I have many XY points on each 'line' and expect to plot 2 lines. Any help greatly appreciated. thx
InitializeChart() case Shared.EChartType.Scatter: this.Chart.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.ScatterLineChart; this.dataSetMonitorSailMap.Tables.Clear(); this.dataSetMonitorSailMap.Tables.Add(); this.dataSetMonitorSailMap.Tables[0].Clear(); { this.dataSetMonitorSailMap.Tables[0].Columns.Add("ColumnX", typeof(double)); this.dataSetMonitorSailMap.Tables[0].Columns.Add("ColumnY", typeof(double)); ...
InitializeRowData() case Shared.EChartType.Scatter: //rowData is an empty ArrayList[2] object // Add Row(s) to DataSet Table rowData[0] = new ArrayList(); rowData[1] = new ArrayList();
for (int i = 0; i < sensorCount; i++) { rowData[0].Add((double)i); rowData[1].Add((double)i); }
row = this.dataSetMonitorSailMap.Tables[0].NewRow(); row.ItemArray = rowData[0].ToArray(); this.dataSetMonitorSailMap.Tables[0].Rows.Add(row); row = this.dataSetMonitorSailMap.Tables[0].NewRow(); row.ItemArray = rowData[1].ToArray(); this.dataSetMonitorSailMap.Tables[0].Rows.Add(row);...
UpdateChart(){????}