Multiple XY Series (Line Chart)

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

Multiple XY Series (Line Chart)

Post by S Pirois » Mon Jan 27, 2003 12:41 pm

How do i show more than one series of data on the same chart?

My aim is to show some raw data as one line and the average of this data as another (on the same chart)....is this possible and how

Thank you

David Gilbert

Re: Multiple XY Series (Line Chart)

Post by David Gilbert » Mon Jan 27, 2003 9:28 pm

The XYDataset interface allows multiple series...take a look at the XYSeriesCollection class for *one* example of a class that implements XYDataset. You should also look through src/com/jrefinery/chart/demo for the line chart demos.

Regards,

Dave Gilbert

Locked