Hi all,
I would like to create a range chart using MSchart, i know how to create the chart by just using the Y value as shown below:
chart1.Series["Series1"].ChartType = SeriesChartType.Range;
chart1.Series["Series1"].Points.DataBindY(upper, lower); //upper & lower are arrays
However, I can't figure out how to create the range chart by having X-axis value (x-axis is datetime value), does anyone know how to create the range chart with X & Y values? Thanks.
Loading
Praneeth KumarPosted Jun 10, 2011, 7:40 AM
I have worked quite a lot in Dundas chart and Asp.net charts. I am not clear of the requirement. Can you please elaborate a bit more so that I can have a clarity with your doubt.
Did you try the below line. Not sure it could be of help.
chart1.Series["Series1"].Points.AddXY(XVal, YVal);
Regards,
Praneeth
Praneeth KumarPosted Jun 12, 2011, 9:23 AM
If at all my answer helped pls mark the answer as accepted.
Thanks,
Praneeth
Kok Keong ChuaPosted Jun 12, 2011, 4:58 AM
I have figured out how to include x value in the range chart with one X value & 2 Y values:
chart1.Series["Series1"].ChartType = SeriesChartType.Range;
chart1.Series["Series1"].Points.DataBindXY(Xvalue,upper, lower);
Thanks for the help.