I have an XY series that I add to an XYSeriesCollection. The x,y coordinates are like this:
260.232788, -0.328064
260.206970, -0.292206
260.240570, -0.267487
260.264160 ,-0.291931
260.241119, -0.320007
260.241119, -0.374451
When the chart appears it lists the points in order:
260.206970, -0.292206
260.232788, -0.328064
260.240570, -0.267487
260.241119, -0.320007
260.241119, -0.374451
260.264160 ,-0.291931
That is not how I want the graph to look. Is there some other kind of XY graphing thing that I can use to just put the points in as they are read out of the array? Thanks.
Allyson
XYSeries and XYSeriesCollection
Re: XYSeries and XYSeriesCollection
It's a property of the XYSeries class that the values are sorted in order of x-value. It comes about because XYSeries was copied from the TimeSeries class. I'll look at making the sorting optional for a future release.
In the meantime, you should be able to modify the source code pretty easily to remove the sorting...
Regards,
Dave Gilbert
In the meantime, you should be able to modify the source code pretty easily to remove the sorting...
Regards,
Dave Gilbert
Re: XYSeries and XYSeriesCollection
Thanks for the help (also on the other question about the charts - the suggestion worked).
I would like to modify the source code, but don't know exactly where it is. Is it in jfreechart***.jar? I am still using version 0.9.4 because I didn't want to change all my APIs yet to the new version. Can you give me a hint as to where this source code is that I can modify? Thanks.
Allyson
I would like to modify the source code, but don't know exactly where it is. Is it in jfreechart***.jar? I am still using version 0.9.4 because I didn't want to change all my APIs yet to the new version. Can you give me a hint as to where this source code is that I can modify? Thanks.
Allyson