sokollito
Posts: 1
Joined: Thu May 05, 2022 3:03 pm

How to align data labels in Pie chart

Hi,
how to align labels on the pie chart in the way the auto aligned on sunburst chart. Basically I mean that they are inside chart, also rotated and cropped if the are no space for this label on the chart.
Just like on the https://www.highcharts.com/demo/sunburst example?
Thanks in advance.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: How to align data labels in Pie chart

Hi sokollito,

Welcome to our forum and thanks for contacting us with your question!

Such label alignment is not implemented for pie series. Distance property can be used to position labels inside pie slices, but they won't rotate or crop automatically.
Demo: https://jsfiddle.net/BlackLabel/qom9dgpb/

Let me know if you have any further questions.
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”