Defines how y axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property.
var chart = new CanvasJS.Chart("container",
{
.
.
data: [{
yValueFormatString: "$####.00",
},
]
.
.
});
chart.render();
2 Comments
Is it possible of displaying the y axis, tool tip in HH:mm format.
Yes it is possible, using CanvasJS.formatDate, contentFormatter and labelFormatter.
You can refer to this fiddle https://jsfiddle.net/canvasjs/7dqw4p3L/