labelFontFamily: String

Sets the font-family of stripLine’s label. If the first font is not found in the system from the specified font-family list, it tries to use the next font in the list.

Default: “Trebuchet MS, Helvetica, sans-serif”
Example: “Arial, Trebuchet MS, Tahoma, sans-serif”
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. axisX:{
  6. stripLines: [{
  7. .
  8. labelFontFamily: "Arial, Trebuchet MS, Tahoma, sans-serif",
  9. .
  10. }]
  11. },
  12. .
  13. .
  14. });
  15. chart.render();

Try Editing The Code


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