indexLabelLineThickness: Number

Sets the thickness of line connecting indexLabel with its corresponding dataPoint. It is only applicable when indexLabelPlacement is “outside”.

Default: 2 for pie/doughnut, 0 for other chart type
Example: 4, 6
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
  type: "pie",  //"doughnut"
  indexLabelLineThickness: 5,
 
},
]
 .
 . 
});
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

    • Anjali says:

      It doesn’t show indexLabel unless you set “indexLabel” or “label” property. So you can achieve the same by just skipping those properties. Here is an example.

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