Javascript examples for highcharts:Chart Tooltip
set Precision-ToolTip
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.4.3.min.js"></script> <script type="text/javascript"> $(function(){/*from ww w. j a v a2 s. c o m*/ window.chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'pie' }, tooltip:{ formatter:function(){ console.log(this); return 'percet '+Highcharts.numberFormat(this.percentage,2) + '%'; } }, series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], ['aaa', 1] ]}] }); }); </script> </head> <body> <script type="text/javascript" src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 300px"></div> </body> </html>