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:    



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

Comments 2

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