I have this
I want to format the labels above each column to have K in case its above thousands or M above millions
I saw some codes of Formatter but when added it to the datalabels property it loads with only zero or not at all
this is the code I found here
Code: Select all
formatter: function() {
if ( this.value > 1000 ) return Highcharts.numberFormat( this.value/1000, 1) + "K"; // maybe only switch if > 1000
return Highcharts.numberFormat(this.value,0);
}
Thank you