Combining Time Series

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

Combining Time Series

Post by Marco Wotruba » Tue Feb 11, 2003 9:41 am

Hi,
I am new a JFreeChart and I want to create a XYPlot from two time series like.

t | a t | b
--+--- --+--
1 | 10 1 | 5
2 | 20 3 | 6
3 | 30 5 | 7
4 | 40 7 | 8
5 | 50
6 | 60

But I dont want want to plot two graphs (a over t) and (b over t). I want to plot (a over b).
The time series I would expect may look like:

a | b
---+--
10 | 5
20 | 5
30 | 6
40 | 6
50 | 7
60 | 7


Is there a DataSet that enables me to do this?

Regards,
Marco

Locked