A custom formatter function that returns stripLine’s label.
var chart = new CanvasJS.Chart("container",
{
.
.
axisY:{
stripLines: [{
.
value:12,
labelFormatter: function ( e ) {
return "$" + e.stripLine.value;
}
.
}]
},
.
.
});
chart.render();
e: { // parameter sent to function
chart,
axis,
stripLine
}
Also See: