Javascript examples for highcharts:Chart Configuration
chart with numberformat unit
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function () {/*from www .j a va 2s. c o m*/ $('#container').highcharts({ chart: {}, xAxis: { categories: ['Foo', 'Bar', 'Foobar'] }, yAxis: { labels: { formatter: function () { return Highcharts.numberFormat(this.value,0); } } }, series: [{ data: [1000,100000,1000000] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px; width: 500px"></div> </body> </html>