How to creatre a zoom panel at the bottom of a line graph?

2,082 views
Skip to first unread message

Tim Hill

unread,
Dec 7, 2016, 5:21:29 PM12/7/16
to Google Visualization API
Hi all,

I've successfully created a line graph pulling four columns of data from a Google Sheet and I can get explorer to make it pan and zoom.

However what I'm really after is a 'zoom panel' that I can see at the bottom of this graph: https://developers.google.com/chart/interactive/docs/gallery/annotationchart but no reference to it in the code.

This allows users to move sliders and zoom in on certain dates.

Any ideas how this is done or is it only a feature on annotation charts?

Thanks.

Daniel LaLiberte

unread,
Dec 12, 2016, 11:30:53 AM12/12/16
to Google Visualization API
Hi Tim,

The 'range' control on the bottom of the AnnotationChart could be used with your own charts by using the ChartRangeFilter control in a dashboard.  See https://developers.google.com/chart/interactive/docs/gallery/controls

If you try this, you'll find there are some significant differences, however.  In particular, we use the ChartRangeFilter not to do filtering, but to get its date range and set the viewWindow min and max of the chart instead, which is more like what the explorer mode does.   It is possible for you to do that too, but just not so obvious.  


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/8d5179a3-4703-445f-8b87-40d3c6bc65de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Tim Hill

unread,
Dec 12, 2016, 1:59:31 PM12/12/16
to Google Visualization API
Thanks Daniel - I'll give it a try just as soon as I've broken through my latest headache: https://groups.google.com/forum/#!topic/google-visualization-api/iG5Z7GLCWHs ;) - any words of wisdom in this?

Reply all
Reply to author
Forward
0 new messages