admin管理员组文章数量:1397608
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.
本文标签: javascriptDisable pinch to zoom in highstockhighchartsStack Overflow
版权声明:本文标题:javascript - Disable pinch to zoom in highstockhighcharts - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744762977a2623862.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论