Javascript examples for highcharts:Chart Tooltip
Highstock Shared Tooltip
<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 www .j a va 2 s.com*/ $('#container').highcharts({ xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ] }, tooltip: { useHTML: true, shared: true, formatter: function(tooltip) { // where the hell is it! var nodes = this.points, current = nodes[0].series.chart.hoverPoint; console.log(current, current.series.name); return current.series.name; } }, series: [{ data: [0, 0, 0, 0, 0, 0] }, { data: [1, 1, 1, 1, 1,1] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px"></div> </body> </html>