Javascript examples for highcharts:Chart Tooltip
Format tooltip numbers in charts
<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 w w . ja v a 2 s .co m Highcharts.setOptions({ global: { useUTC: false, }, lang: { decimalPoint: ',', thousandsSep: '.' } }); $('#container').highcharts({ xAxis: { type: 'datetime' }, tooltip: { pointFormat: '{series.name}: <b>{point.y}</b><br/>' + 'Count: <b>{point.count:,.1f}</b><br/>', shared: true }, series: [{ data: [{y:20009, count: 20009.9},{y:10009.9, count: 20009.9},{y:40009.9, count: 20009.9}], pointStart: Date.UTC(2010, 0, 1), pointInterval: 3600 * 1000* 24 // one hour }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px"></div> </body> </html>