score:131

Accepted answer

this can be set with the thousandsep (api) global option.

highcharts.setoptions({
    lang: {
        thousandssep: ','
    }
});

see this jsfiddle example.

score:0

this way work for me.

i use angular 10 and i did this for tooltip and yaxis.

for yaxis use numberformat:

 labels: {
              format: '{value}',
              style: {
                color: highcharts.getoptions().colors[0]
              },
              formatter: function() {
                return highcharts.numberformat(this.value, 3);
            }
            },

and for tooltip :

{point.y:.f}

score:4

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>'
   }

score:5

this way worked with me.

i configured in yaxis option.

yaxis: {
  labels: {
    formatter: function() {
        return highcharts.numberformat(this.value, 2);
    }
  }
}

Related Query

More Query from same tag