I used the highcharts library to create a donut pie chart. I need to hide the label if the label is not able to fit the available space in the sector. I was trying to get the width, but since it’s just a path with fill I’m not really sure how I can get the actual available width.
Donut pie chart
I tried to use arcLength
but it’s not the correct propery.
Demo – https://codepen.io/grafit_off/pen/bGPBBBY?editors=0010
New contributor
Mirai Grafit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.