Ok. After a short investigation, it seems like our bug. For the chart values, we intentionally ignore the time zone, so if you have a date with local 12:00, you see it as 12:00 in the chart. Yet, on the range, we do not ignore the time zone, and so when your date is 12:00 +8, we zoom to 4:00 am in the day before.
I hope this is what you were describing. We will look into fixing this issue, and will notify before it goes live, so users who already rely on the current behavior, have chance to modify to the new way. Thanks, VizGuy On Thu, Apr 23, 2009 at 4:13 PM, Hanwen <[email protected]> wrote: > > Yes, I have a set of date object from local time 12:37 to 12:53 > (+08:00), it shows 12:37 to 12:53 in the chart x-asis, but the visible > range becomes 20:37 to 20:53. > http://clover.csie.org/~chanwen/MyLBS/annotatedTimeline.html > > The problem is not the setVisibleRange and getVisibleRange function; > if I set visible range 10:20 to 12:20, the range becomes 10:20 to > 12:20. > (You can test by clicking the "set range" button and then the "get > range" button.) > > The problem is that in the data table, the date are from 12:37 to > 12:53, but chart draw the data from visible range 20:37 to 20:53 (but > displayed in 12:37 to 12:53). > (You can see my source code that the data are from 12:37 to 12:53, but > if you just click "get range" button after loading, it tells 20:37 to > 20:53) > > Thanks a lot for your kindly help. > > Hanwen > > On Apr 23, 5:51 pm, VizGuy <[email protected]> wrote: > > Hi,So to see that I get the problem. > > The chart displays the times as local, so if you have a date of local > time > > 10, it will show up like 10 in the chart, but you say that when you set > the > > visible range to 10 you see something else? > > > > Regards, > > VizGuy > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
