XYLineChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lutchanah
Posts: 5
Joined: Thu Jul 31, 2003 7:21 am

XYLineChart

Post by lutchanah » Tue May 31, 2005 2:08 pm

I have a problem with this chart

In the old version it's possible to have a dataset like this

1 point/ x=0 y=0
2 point/ x=100 y=50
3 point/ x=10 y=0


so now with the same dataset, the point change like

1 point/ x=0 y=0
2 point/ x=10 y=0
3 point/ x=100 y=50

I would like to know if it's possible set the order of the dataset

Thanks

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue May 31, 2005 5:24 pm

Set the autoSort argument in the constructor for XYSeries to false:

http://www.jfree.org/jfreechart/api/org ... an:boolean
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked