A custom formatter function which returns the text to be displayed as indexLabel on dataPoints.
Notevar chart = new CanvasJS.Chart("container",
{
.
.
data:[{
dataPoint :[
{ x: 10, y : 12,
indexLabelFormatter: function (e) { return e.dataPoint.y ; }
},
}],
.
.
});
chart.render();
e: { // parameter sent to function
chart,
dataSeries,
dataPoint,
index, // Available only in range charts
total, // Available only in stacked, pie and doughnut charts
percent, // Available only in stacked, pie and doughnut charts
}