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 Editing The Code


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

3 Comments

  1. Miguel Pinto says:

    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