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

  Also See:    


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

2 Comments

  1. Praveen Kumar Verma says:

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

    • Sanjoy says:

      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