score:0

Accepted answer

i've wanted to use the shift key for zooming, so this is my solution

 $('#container').highcharts('stockchart', {
    chart: {
        //zoomtype: 'x', // we declare it without zoom, so the pan is enabled
        // ...
    }}); 
    var chart = $('#container').highcharts();
    chart.pointer.cmd = chart.pointer.oncontainermousedown;
    chart.pointer.oncontainermousedown = function (a){
        //in my case, i need only x zooming, so i enable it if shift is pressed
        this.zoomx=this.zoomhor=this.haszoom=a.shiftkey;
        this.cmd(a);
    };

seems to work ok, so hope it help you

here is a jsfiddle working example: http://jsfiddle.net/73bc23zq/

score:3

you can try with selection event:

chart: {
        ...
        events:{
            selection: function(event) {
                if (lastbutton == 1)
                    event.preventdefault();
            }
       }
    }

see http://jsfiddle.net/tkpqn/48/


Related Query

More Query from same tag