enable / disable CrossHaires by external button

Posted by Younes on Stack Overflow See other posts from Stack Overflow or by Younes
Published on 2012-11-26T21:11:52Z Indexed on 2012/11/26 23:04 UTC
Read the original article Hit count: 138

Filed under:
  tooltip: {
        crosshairs: [{
                        dashStyle: 'dash'
                    },{
                       dashStyle: 'dash'     
                    }]
                },
....

    $("#toggleCrossHaire").click(function(){
     if(chart.tooltip.crosshaires){
      chart.tooltip.crosshaires : [false,false];
    }eles{
      chart.tooltip.crosshaires : [true,true];
    }
    });

enable or disable and change dashStyle of Crosshairs . to solid and dash . by an external button??

this example for more explication

© Stack Overflow or respective owner

Related posts about highcharts