indexLabelFontColor: String

Sets the Index Label’s Font color. The value of IndexLabelFontColor can be a “HTML Color Name” or “hex” code .


Default: “grey”
Example: “red”, “#FAC003” ..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
  dataPoints: [
   { x: 10, y: 10,  indexLabel: "label1", indexLabelFontColor: "green" },

   ],
  },

 ]
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.