question about XYSeries for AreaXYChart AND ScatterPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yoyo

question about XYSeries for AreaXYChart AND ScatterPlot

Post by yoyo » Wed Aug 14, 2002 9:26 am

Hello
I have a format problem with my XYSeries.
XYSeries need number its "X Series" and I have only String to create it (kind of '2001/01", "2001/02" ..... ).
Somebody had this problem and resolve it?
thank
yo

David Gilbert

Re: question about XYSeries for AreaXYChart AND ScatterPlot

Post by David Gilbert » Wed Aug 14, 2002 9:42 am

If your data is date-related, then you might consider using the BasicTimeSeries class and adding these series to a TimeSeriesCollection. The TimeSeriesCollection class implements the XYDataset interface, so it can be used as the dataset for many charts.

Regards,

DG.

Locked