Urgent help needed for TimeSeries Chart

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

Urgent help needed for TimeSeries Chart

Post by Reji Mani » Thu Feb 14, 2002 12:58 am

Hi,

I am plotting a TimeSeries Chart with TimeSeriesCollection as Dataset.

I am using second.class for creating BasicTimeSeries.

like

BasicTimeSeries series1 = new BasicTimeSeries("abc", Second.class)

Then I am adding series to series1. I am getting Date value from Database, like this,


Date dt = currentStat.scanTime // returns Date object

series1.add(new Second(dt), new Double(currentStat.monitorValue));

But my problem is Chart X-Axis shows time 9 Hours ahead of actual time..

I am in GMT + 9.00 Hrs Time zone... Does anybody have any idea how to fix this problem?

Thanks in advance...

Reji Mani from South Korea

Reji Mani

Re: Urgent help needed for TimeSeries Chart

Post by Reji Mani » Thu Feb 14, 2002 6:13 am

Hi,

I got solution for the above problem from Omar Khalid..

Instead of Second.class we can use Millisecond.class for BasicTimeSeries and it is working fine without any TimeZone problem..

Thanks Omar.

Reji Mani

David Gilbert

Re: Urgent help needed for TimeSeries Chart

Post by David Gilbert » Thu Feb 14, 2002 7:53 am

Reji,
Thanks for the info. I will find a solution for the Day/Hour/Minute/Second classes for the next release...

Regards,

DG.

Locked