Reputation: 332
I'm using HighChart and when the data is load, the ordinate of the charts display a 'k' after the number for the thousands but I would like do not display the 'k'.
Example : 1 500k
-> 1 500
.
Upvotes: 0
Views: 260
Reputation: 45079
If you want to change this for all charts, use lang.numericSymbols
: https://jsfiddle.net/BlackLabel/t3hporya/
Snippet:
Highcharts.setOptions({
lang: {
numericSymbols: ['']
}
});
Highcharts.chart('container', {
series: [{
data: [0.029, 71.5, 1.06, 1292, 14400, 1.760, 135, 1480, 0.0216, 0.194, 9.56, 54.4]
}]
});
Upvotes: 1
Reputation: 363
You can provide your own format using the format parameter
yAxis: { // can be xAxis too
labels: {
format: function() {
return value.substr(0, 1) + ' ' + value.substr(1);
}
}
}
Upvotes: 0