yaxis labels Format - Javascript highcharts

Javascript examples for highcharts:Chart Label

Description

yaxis labels Format

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  ww  w  .ja v a  2  s  . c  o  m*/
    $('#container').highcharts({
        yAxis: {
            labels: {
                formatter: function () {
                    return Highcharts.numberFormat(this.value,0);
                }
            }
        },
        series: [{
            data: [100,1000,10000]
        }]
    });
});

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

Related Tutorials