borderThickness: Number

Sets the thickness of border around the Title in pixels. To display border around title, set the borderThickness to a number greater than zero.

Default: 0
Example: 2,4 ..

  • It is recommended to add padding whenever borderThickness is set so that border is not too close to the text.

var  chart =  new  CanvasJS.Chart("container",
  borderThickness: 2,

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