Hi sir, i want to ask is it possible to custom scales yAxis ticks label?
.....
ummm, if I want the scales yAxis ticks to be a value with percentage or dollar $. Is it possible?
many thank you, sir
Yes tried that by inserting this option inside your yAxes.
ticks: {
callback: function(label, index, labels) {
return '$'+label/1000; // just change the '$' to % for percentage
}
}
Yep like @claide said,
you have to create a custom callback for the xAxis ticks in your options object and pass it.
http://www.chartjs.org/docs/latest/axes/labelling.html#creating-custom-tick-formats
Most helpful comment
Yes tried that by inserting this option inside your
yAxes.