Problem creating times series comparisons

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mac88
Posts: 1
Joined: Tue Aug 08, 2006 3:44 pm

Problem creating times series comparisons

Post by mac88 » Tue Aug 08, 2006 4:13 pm

Hi

I've been trying to plot time series data representing a period of 5 years as 5 x 1 year periods on the same axes.

Any ideas on how best to do this? I don't see any examples in the JFreeChart Demo Collection. I tried using 5 x TimeSeries but of course I just end up with one line, in five colors over it's length, over a five year period on the X axis.

Currently I'm using five XYSeries, each with the x coordinate holding a number from 1 - 365 representing a day and y for the value but this isn't ideal as the X axis labels are 1 - 365 instead of something like Jan - Dec.

Any help/advice appreciated.

Thanks

SeanMcCrohan
Posts: 18
Joined: Thu May 11, 2006 11:22 pm

Post by SeanMcCrohan » Tue Aug 08, 2006 6:02 pm

Name the series to reflect the year they're supposed to represent, but change the dates on the datapoints so they all have the same year set. You might also want to change the domain axis's DateFormat so that it will only display day/month, not year.

Locked