titleFontStyle: String

Sets the Font Style of Axis Title. It can be set to one of the below options.

Default: “normal”
Options: “normal”, “italic” , “oblique”
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. axisX:{
  6. titleFontStyle: "italic",
  7. },
  8. .
  9. .
  10. });
  11. chart.render();

Try Editing The Code


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