Plotting raw values for Line chart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Chen
Newbie
Newbie
Posts: 43
Joined: Tue Mar 11, 2008 12:00 am
Contact:

Plotting raw values for Line chart

Post by Chen » Wed Sep 10, 2008 9:41 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 12, 2008 10:02 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply