Highcharts: Format all numbers with comma? Highcharts: Format all numbers with comma? javascript javascript

Highcharts: Format all numbers with comma?


This can be set with the thousandSep (API) global option.

Highcharts.setOptions({    lang: {        thousandsSep: ','    }});

See this JSFiddle example.


This way worked with me.

I configured in yAxis option.

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


In case you want to show numbers without commas and spaces.

eg. by default 9800 shows as 9 800.

If you want 9800 to be shown as 9800

you can try this in tooltip:

    tooltip: {     pointFormat: '<span>{point.y:.f}</span>'   }