margin: Number

This property lets you set margin between Title & PlotArea.


Default: 5
Example: 4,12 ..

Notes
  • Margin is applied between Chart Title and Plot Area.
  • Margin won’t apply when title is docked inside plot area – by setting dockInsidePlotArea to true.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 title:{
   margin: 10,
 },
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



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 2

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.