Note/Detail on a point in data on series - Javascript highcharts

Javascript examples for highcharts:Chart Series

Description

Note/Detail on a point in data on series

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {//from  w  ww. j av a  2 s . c om
    $('#container').highcharts({
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.y}: {point.options.note.text}</b><br/>'
        },
        series: [{
            name: 'dogs',
            data: [{
                y: 25,
                note: {
                    text: 'Note A'
                }
            },{
                y: 15,
                note: {
                    text: 'Note B'
                }
            }]
        }]
    });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container" style="height: 300px"></div>  
   </body>
</html>

Related Tutorials