margin: Number

This property lets you set margin between chart’s boundary and Axis.


Default: 2
Example: 8, 10..

Notes
  • It is applied below or to the left side of Axis depending on whether it is horizontal or vertical


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisY:{
  title: "Title with Margin",
  margin: 10,
 },
 .
 .
});
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 3

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.