Sets the Index Label’s Font color. The value of IndexLabelFontColor can be a “HTML Color Name” or “hex” code .
Default: “grey”var chart = new CanvasJS.Chart("container",
{
.
.
data: [{
dataPoints: [
{ x: 10, y: 10, indexLabel: "label1", indexLabelFontColor: "green" },
],
},
]
.
.
});
chart.render();
Also See: