padding: Number

This property allows you to set the padding for Chart Title

Default: 0
Example: 5, 8 ..

  • It is recommended to apply padding when enclosing the title with border.
  • Padding is applied in all directions.

var  chart =  new  CanvasJS.Chart("container",
   padding: 5,

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.