multi data sets

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

multi data sets

Post by Akmal » Tue Nov 13, 2001 3:17 pm

hello David,

I have files that go like this:

modul_1= 2 3 4 5
modul_2= 20 30 20 16 17

and so on, so I have multible data sets that are independent to each other!

Can I visualize them together on one chart?1

appreciate your feed back!!

regards

Akmal

David Gilbert

RE: multi data sets

Post by David Gilbert » Thu Nov 15, 2001 10:12 am

Hi Akmal,

I'm not sure I understand your question completely...can you provide some more info? The type of chart you want to produce, what the numbers represent, and whatever else might help...

Regards,

DG.

Akmal

RE: multi data sets

Post by Akmal » Thu Nov 15, 2001 11:30 am

hello David,

my chart is a line graph and I represent two or more lines on the same chart but they should be independent to each other so one would have the x,y sequence like that: (2,3) (3,6) (4,8)
and the other would go like that: (1,7) (5,20)

so one has three points and the other has only two!

so the question is : can I represent the two lines on the same chart?

Thanks a lot!!!!!!!!!

Akmal

David Gilbert

RE: multi data sets

Post by David Gilbert » Mon Nov 19, 2001 4:45 pm

Hi Akmal,

Yes you can. The XYDataSource interface allows for multiple series, with each series having an arbitrary number of (x, y) data items.

The current version of JFreeChart supports only one chart type for XYDataSource at present - the XYPlot simply draws lines between each data point.
The next version of JFreeChart will also include a scatter plot.

Regards,

DG.

Locked