labelFontFamily: string

Sets the Font Family of Axis labels.

Default: “Trebuchet MS, Helvetica, sans-serif”
Example: “calibri”, “tahoma”, “verdana” ..
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   labelFontFamily: "tahoma",
 },
 .
 .
});
chart.render();

Try Editing The Code


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