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.



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

Comments 3

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