Times series and Date Axis problem

Discussion about JFreeChart related to stockmarket charts.
Locked
khem

Times series and Date Axis problem

Post by khem » Thu Nov 25, 2004 4:33 pm

Hi,


I have a dataset defined like this :

Code: Select all

TimeSeriesCollection dataset = new TimeSeriesCollection();
TimeSeries okSeries = new TimeSeries("OK", Month.class);
TimeSeries koSeries = new TimeSeries("KO", Month.class);
okSeries.add(new Month(10,2004), 10);
okSeries.add(new Month(11,2004), 15);
koSeries.add(new Month(10,2004), 3);
koSeries.add(new Month(11,2004), 4);
dataset.addSeries(okSeries);
dataset.addSeries(koSeries);
And I in my chart I have something like this :

Code: Select all

|                                                OK2 
|   
|   OK1 
|
|
|                                                KO2
|   KO1 
--------------------------------------------------------
        Oct-2004        Oct-2004          Oct-2004
But with this dataset, I would like to have :

Code: Select all

|                                  OK2
|   
|                   OK1 
|
|
|                                  KO2
|                   KO1 
--------------------------------------------------------
                 Oct-2004        Nov-2004
How can I do this?

thx in advance

khem

sorry

Post by khem » Thu Nov 25, 2004 4:38 pm

:oops:
I ve posted to the wrong forum, I have reposted to the "General" forum.
I hope an admin can delete this subject...

Locked