combined plot with different X-axis

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

combined plot with different X-axis

Post by Isabelle Gheysens » Fri Feb 28, 2003 12:00 pm

Hello,

I want to make a chart in which data of all weeks of a month are compared to each other. So I want to create a vertically combined chart containing a subchart for each week. But my problem is that the time on the X-axis is not the same for each chart.

For example for februay 2003, the chart should have 5 subcharts.

subchart1: X-axis: 1 - 2 feb
subchart2: X-axis: 3 - 9 feb
subchart3: X-axis: 10 - 16 feb
subchart4: X-axis: 17 - 23 feb
subchart5: X-axis: 24 - 28 feb

Also, the data on the subcharts should be aligned correctly, I mean data for each monday should be below each other, data for each tuesday should be below each other and so on...
So if the first day of a month is not a monday, data should not be painted at the beginning of the first subchart, for example if a month starts on a thursday, data should start somewhere int the middle of the first subchart, so that weeks (days of weeks, a moment somewhere in that week) can be compared over the weeks of that month.

I have data every x minutes. Mostly these are 15-min or 30-min values.

Can this be done with JFreeChart?

Thanx in advance,

Isabelle

Isabelle Gheysens

Re: combined plot with different X-axis

Post by Isabelle Gheysens » Tue Mar 04, 2003 8:15 am

Is there anyone who can tell me if this can be done with JFreeChart?
Greetings,

Isabelle

David Gilbert

Re: combined plot with different X-axis

Post by David Gilbert » Tue Mar 04, 2003 9:55 am

Hi Isabelle,

I think it is not. The combined plots always use one shared axis...but it ought to be possible to modify the code so that all the sub plots retain their own axes. It would be a useful feature, and could even allow for category plots and XY plots to be displayed together in one chart.

Regards,

Dave Gilbert

Locked