getting series from a XYDataset (newbie)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
leo77
Posts: 9
Joined: Wed May 23, 2007 7:37 pm
Location: Brazil (Porto Alegre, RS)
Contact:

getting series from a XYDataset (newbie)

Post by leo77 » Wed Jul 11, 2007 7:41 pm

Hi...

I have a XYPlot and I want to "clone" it. However, when I get the Dataset and put it into a new plot, it shows no series when I display it (I suppose it does not get the series from the dataset). So, I think I need to get the series I've inserted to build a new dataset. How do I do that?

I've used a TimeSeriesCollection to build the dataset for this plot. But I also dont know how to get a TimeSeriesCollection from a plot, so I get only the XYDataset. If I could get a TimeSeriesCollection from the plot, I could use the method getSeries()...


can you help me, please
if the answer for my problem is in the developer guide, could you tell me where to find, because I didnt...
Leo

Locked