Home › Forums › Chart Support › How to reduce number of 0 on Y axis? › Reply To: How to reduce number of 0 on Y axis?
Please Ignore this. It has been resolved using this function:
function addSymbols(e) { var suffixes = ["", "K", "M", "B"]; var order = Math.max(Math.floor(Math.log(Math.abs(e.value)) / Math.log(1000)), 0); if (order > suffixes.length - 1) order = suffixes.length - 1; var suffix = suffixes[order]; return CanvasJS.formatNumber(e.value / Math.pow(1000, order)) + suffix; }
and declaring it in Y axis.
Thank you.