Highcharts yaxis labels Format

bahar_Agi picture bahar_Agi · Apr 16, 2013 · Viewed 9.7k times · Source

Is there any way to format yaxis into something I want.

In fact, sometimes on the yaxis the data is shown with (k) on the right instead of thousand.

I want to remove (k). How can I do it?

The image of yaxis I want:

enter image description here

Answer

Sebastian Bochan picture Sebastian Bochan · Apr 17, 2013

You can use formatter (http://api.highcharts.com/highcharts#yAxis.labels.formatter) and numberFormat() http://api.highcharts.com/highcharts#Highcharts.numberFormat()

http://jsfiddle.net/K2X3Y/

 yAxis: {
        labels: {
            formatter: function () {
                return Highcharts.numberFormat(this.value,0);
            }
        }
    },