With the new update for highcharts came support for pinch to zoom on the iPad/iPhone, however this doesn't work how I expected. I presumed that the chart would actually zoom into the date range, instead it just literally zooms into the chart lines and markers, rendering the functionality a bit pointless.
Is it possible to disable this?
With the new update for highcharts came support for pinch to zoom on the iPad/iPhone, however this doesn't work how I expected. I presumed that the chart would actually zoom into the date range, instead it just literally zooms into the chart lines and markers, rendering the functionality a bit pointless.
Is it possible to disable this?
Share Improve this question asked Mar 28, 2013 at 14:48 hchargehcharge 1,2462 gold badges24 silver badges43 bronze badges2 Answers
Reset to default 6There is a chart.zoomType and chart.pinchType property that take the same values (x,y,xy,none). By default chart.pinchType is null and reverts to chart.zoomType. If you want only zooming on the x-axis for pinching, you would do:
chart : {
pinchType : 'x'
...
}
Or set chart.pinchType to 'none' to pletely disable. Or leave it null and set your chart.zoomType to either of these.
http://api.highcharts./highcharts#chart.pinchType
http://api.highcharts./highcharts#chart.zoomType
Looks like setting pinchType to anything doesn't work. Until we set zoomType to null charts are still being zoomed by tough gestures on iOS Safari. Plus, we looked into the source code and the property doesn't seem to be implemented. We have Highcharts JS v.4.1.7.