Page 1 of 1

Plotting raw values for Line chart

Posted: Wed Sep 10, 2008 9:41 pm
by 7667591
Hi,

Normally a line chart is associated with some kind of statistics (mean, median, sum, std, raw). In the case of raw values, one point on X-axis can be mapped to more than one Y-values. Is it possible for me to do using a teechart ?

http://picasaweb.google.com/cbvarun/Ste ... 0279202610

Thanks,
Varun

Posted: Fri Sep 12, 2008 10:02 am
by narcis
Hi Varun,

Yes, you can add several points with same X or Y values, for example:

Code: Select all

line1.add(1,1);
line1.add(1,2);
line1.add(1,3);
line1.add(2,2);
line1.add(2,1);
You may also need setting XValues order to None as by default it is set to ascending, for example:

Code: Select all

        series.getXValues().setOrder(ValueListOrder.NONE);
Hope this helps!