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",
{
 .
 .
 axisX:{
  title: "Title with Margin",
  margin: 10,
 },
 .
 .
});
chart.render();

Try Editing The Code


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

2 Comments

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