It is currently Wed Feb 10, 2016 6:43 am
Technical support for the Highcharts Stock package
I am using highcharts api to develop charts in my application. I am using highstack class from highcharts.
What I am looking is I want handle the zoom controls from external buttons.
for example there is a radio button like zoom (yes, no), if we select yes then zoom functionality should be enable in my chart. If no selected then zoom functionality should be disabled.
I have tried with following property:
I have tried to reset the above property, but failed.
Please give me any suggestion to fix this issue.
Thanks in advance..
- Posts: 1
- Joined: Thu Feb 16, 2012 11:46 am
The simplest way to do this is to use selection event (http://www.highcharts.com/ref/#chart-events--selection
). In the doc you can read:
The default action for the selection event is to zoom the chart to the selected area. It can be prevented by calling event.preventDefault().
So inside the selection event you can simply check if the zoom should be disabled, if yes call "event.preventDefault()".
Highcharts support team
- Posts: 6394
- Joined: Mon Aug 30, 2010 10:41 am
Return to Highstock Usage
Who is online
Users browsing this forum: Exabot [Bot], Google [Bot] and 4 guests