labelFontSize: Number

Sets the Axis Label Font Size in pixels.


Default: Automatically Calculated based on Chart Size
Example: 16, 18, 22..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisX:{
   labelFontSize: 20,
 },
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.



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

Comments 2

    • For showing all labels you can set interval property depending on your x value separations. And if you are not using x value of dataPoints setting interval to 1 should work for you.

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