[Visualization API Library for GWT] Issue using chart.getVisibleChartRange Method

45 views
Skip to first unread message

Bill

unread,
Oct 14, 2012, 11:44:54 PM10/14/12
to google-visua...@googlegroups.com
When I used chart.getVisibleChartRange method as following Java codes. I found that endTime turned out to be 12 hours earlier than it actual date time is when the date time is pm. e.g. it is 2012/09/15 11:00:00 but it should be 2012/09/15 23:00:00.

                                AnnotatedTimeLine chart = new AnnotatedTimeLine(...);
DateRange dataRange = chart.getVisibleChartRange();
Date endTime = dataRange.getEnd();

Is it possible that you could help me to solve this issue, please? Appreciate it!

Scarlet

unread,
Oct 22, 2012, 3:34:47 AM10/22/12
to google-visua...@googlegroups.com
Could somebody help me, please?

在 2012年10月15日星期一UTC+8上午11时44分54秒,Bill写道:

asgallant

unread,
Oct 22, 2012, 10:41:29 AM10/22/12
to google-visua...@googlegroups.com
I'm not familiar with the java GWT implementation, but this sounds like it could be a timezone issue.

Scarlet

unread,
Oct 23, 2012, 10:44:58 PM10/23/12
to google-visua...@googlegroups.com
Thanks asgallant for your kindly reply, but I am afraid it is not a timezone issue. The date time shows in the chart is totally correct, but turns to be 12 hours samller when use dataRange.getEnd() .

在 2012年10月22日星期一UTC+8下午10时41分29秒,asgallant写道:
Reply all
Reply to author
Forward
0 new messages