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 Editing The Code

  Also See:    


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