I am Using Bar and have number for data section which are shown against Y-axis.
How can I format the number display?
e.g For Y-axis when I have 2034 I want to display like 2,034.
I found the way using following:
ticks: {
callback: function(label, index, labels) {
return label.toLocaleString(navigator.language, { minimumFractionDigits: 0 });
}
}
Most helpful comment
I found the way using following:
ticks: {
callback: function(label, index, labels) {
return label.toLocaleString(navigator.language, { minimumFractionDigits: 0 });
}
}