borderThickness: Number

Sets the thickness of border around the toolTip in pixels. To display border around toolTip, set the borderThickness to a number greater than zero. Setting it to zero removes the border.


Default: 2
Example: 2,4 ..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 toolTip:{
  borderThickness: 2,
 },
 .
 .
});
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

  1. can i give the different thickness of toolTip border and different color also?

    • Praveen,

      You can customise toolTip border as the way as you want by changing css property of

      .canvasjs-chart-tooltip > :first-child

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