Posts

Showing posts with the label google-visualization

Can I disable/enable Scrolling in Google Chart with a Button?

Can I disable/enable Scrolling in Google Chart with a Button? I have a Google line chart on my site, which show the school grades of a student over the course of his school years. I have mouse wheel zooming enabled. explorer: { axis: 'horizontal', maxZoomIn: 0.25, maxZoomOut: 4 }, Now I would like to give the user the possibility to disable scrolling with a button. Is it possible to remove the 'explorer' part or just disable scrolling through a variable? 1 Answer 1 sure, let's start by moving the explorer option to a separate variable... var options = { pointSize: 4 }; var explorer = { axis: 'horizontal', maxZoomIn: 0.25, maxZoomOut: 4 }; then we can enable explorer like so... options.explorer = explorer; to disable... options.explorer = null; keep in mind, anytime an option is changed, the chart needs to be re-drawn... see foll...

How to have piechart over a geomap in google charts?

Image
How to have piechart over a geomap in google charts? I would like to achieve a similar result as presented in the picture below using google charts: By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.