Official API for Dynamically Changing Pan and Zoom Behavior
Please add an official method for switching between various Pan and Zoom behaviors (i.e., to allow for different zoom/pan tools to be selected by the user instead of using a pan key).
4
votes
![](https://secure.gravatar.com/avatar/cdd83e34e1dad9a7a7eee3b409e3a73d?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Paweł Fus commented
How about this solution: http://jsfiddle.net/eav5v8dz/ - in short, wrap Pointer.drag method, and check some input (checkbox or radiobutton etc.). When panning is enabled, simply add custom `event.my_nameKey` which will be set in "chart.panKey". Let me know if something is not clear!