handle mousedown event on chart ? - Javascript highcharts

Javascript examples for highcharts:Chart Event

Description

handle mousedown event on chart ?

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container" onmousedown="mouseDown()" style="height: 400px"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
  series: [{//from   w ww .j ava 2s .  c  om
    data: [29.9, 71.5, 106.4, 129.2, 144.0]
  }]
});
function mouseDown() {
  console.log('mousedown event!');
}

      </script>  
   </body>
</html>

Related Tutorials