1
votes

i found this example that allows to set double click zoom to true. I need to be able to zoom in a single click how can I do that in high charts.

DoubleClick zoom example here:

http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/maps/demo/doubleclickzoomto/

 mapNavigation: {
   enabled: true,
   enableDoubleClickZoomTo: true
 },
2

2 Answers

0
votes

Use mapZoom after click event. In click event you have access to values of clicked place on a map.

Note: You may need to create some if-else statement, to prevent clicks on legend, +/- buttons etc.

0
votes
you can use zoomTo() , it'll zoom to a particular point wherever you have clicked 
here is a fiddle

oneclickzoomTo()