Can you provide some guidance on how to use XML data to populate my scatter charts (one with line, one without)? Your help is appreciated!
Hello Cyril,
What you can do is load your XML file into a DataSet like so: http://support.microsoft.com/kb/311566 and use the Series DataBind method to map the necessary columns. You can test this out with the xml file found here: http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=Chart_Binding_to_an_XML_File.html by adding two layers (area and spline) and mapping like so the “ds” DataSet to their series:
series.DataBind(ds.Tables[0],"open", "date");
series2.DataBind(ds.Tables[0],"close", "date");
For more information on handling the CompositeChart here is a link from our online documentation: http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.1/CLR2.0/html/Chart_About_Composite_Charts.html
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Thanks, Petar! I got that to work. I do need further assistance regarding setting up the x axis. Is it possible to customize the min/max value as well as the interval? Can the maximum be a value that is a constant and not necessarily the maximum value of the series being graphed?
I appreciate any help as always!
Hi Cyril
Of course. Here is a link form our online documentation showing how this can be done: http://help.infragistics.com/NetAdvantage/WinForms/2010.2/CLR2.0/?page=Chart_Axis_Ranges.html
Let me know if I can help you further.
Regards Petar.
This worked except for the interval. The x axis seems to keep only 10 intervals that is if I set my RangeMax=30, my intervals are 3,6,9,12... 30. If I set RangeMax=60 it goes from 6,12, 18... 60. How can I set the intervals equals to 1? Thanks again!
Does any one have an example composite graph where the x axis is a date range where the interval is by day? Not all days have data but the entire range needs to show in the graph.
Thanks in advance!
thank you!!!
If you're using a valid time series, such as NumericTimeSeries, then you can use a date x axis.
AxisItem timeXAxis = new AxisItem(ultraChart1, AxisNumber.X_Axis);timeXAxis.DataType = AxisDataType.Time;timeXAxis.TickmarkStyle = AxisTickStyle.DataInterval;timeXAxis.TickmarkInterval = 1;timeXAxis.TickmarkIntervalType = AxisIntervalType.Days;timeXAxis.RangeMin = DateTime.Now.Ticks;timeXAxis.RangeMax = DateTime.Now.AddMonths(1).Ticks;timeXAxis.RangeType = AxisRangeType.Custom;timeXAxis.Labels.Visible = true;timeXAxis.Labels.ItemFormatString = "<ITEM_LABEL:dd MMM>";