Hi, I'm currently working on an app that is using the annotated timeline chart. We added a listener for the rangechange event, which seems to work, but the start and end dates returned by the chart seem a little strange. For instance, when I zoom the chart to November 3rd as the start date, the listener (chartname.getVisibleChartRange.start) reports November 1st (plus an hh:mm:ss component). Sometimes the start date is right on, sometimes it is off by one or two days. I'm executing some ajax to return data based on the timeline zoom, so a day or two difference can result in a completely different dataset.
I understand that timezones come into play here (I'm in CST... -5 or 6 depending on daylight savings), but I'm not sure why the dates are off by up to 2 days. To test this, I went to the google code playground and added a listener to the sample: Sample url: http://code.google.com/apis/ajax/playground/?type=visualization#annotated_time_line Listener I added: google.visualization.events.addListener(annotatedtimeline, 'rangechange', function(){ console.log('Start: ' + annotatedtimeline.getVisibleChartRange().start); }); You can observe the same date behavior on this playground that I see locally: I chose Feb 3rd - Feb 6th (specifically, the first point where the legend (at the top of the chart) showed Feb 3rd as the start point). I expected to see Feb 3rd with some time component but instead saw Fri Feb 01 2008 12:22:39 GMT-0600 (Central Standard Time). This seems like a bug. Am I missing something? -- 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.
