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
Urgent help needed for TimeSeries Chart
Re: Urgent help needed for TimeSeries Chart
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
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
Re: Urgent help needed for TimeSeries Chart
Reji,
Thanks for the info. I will find a solution for the Day/Hour/Minute/Second classes for the next release...
Regards,
DG.
Thanks for the info. I will find a solution for the Day/Hour/Minute/Second classes for the next release...
Regards,
DG.