labelFontColor: String

Sets the Axis Label color. The value of labelFontColor can be a “HTML Color Name” or “hex” code .


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

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   labelFontColor: "red",
 },
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.



If you have any questions, please feel free to ask in our forums.Ask Question

Comments 3

  1. Is there a way to have the X labels in several specified colours depending on an external value?

If you have any questions, please feel free to ask in our forums. Ask Question