You can hook the 'rangechange' event to capture changes in zoom level.
Something like this should work:
google.visualization.events.addListener(chart, 'rangechange', function () {
if (chart.getVisibleRange().end - chart.getVisibleRange().start >
3600000) {
// if the zoom range is > 1 hour (3.6 million microseconds), hide
minutes and show hours
}
else {
// if the zoom range is < 1 hour, hide hours and show minutes
}
});
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/u8yNBYJIrkYJ.
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.