titleFontColor: String

Sets the Font Color of Axis Title. The value of titleFontColor can be a “HTML Color Name” or “hex” code .


Default: “#666666”
Example: “red”, “#006400” ..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   titleFontColor: "red"
 },
 .
 .
});
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.

Comments 2

  1. Hi,

    On X-Axis, I need to display numbers with 2 decimal points….example: 10.00, 20.00 and so on.

    Possible?

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.