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...
