Cannot get data labels to display on a pie chart

0

I am trying to get my data labels to display on a pie chart but I am unable to do so.

I have tried both 

plotOptions.series.dataLabels.enabled = true

And

plotOptions.pie.series.dataLabels.enabled = true

They do not work on a pie chart however, once I change it to a bar chart you can see the labels.

Has anyone else had this problem?

brian.berrelez's picture
Joined: May 9 2017 - 7:31am
Last seen: 1 year 6 months ago

2 Answers:

0

Maybe try Boolean.FALSE or Boolean.TRUE

H Mendoza's picture
351
Joined: Feb 20 2013 - 11:39am
Last seen: 2 months 1 week ago
0

Try just:

series.dataLabels.enabled = true

You could also change the format of the label to include the percentage of the pie:

series.dataLabels.format =  {series.name} {point.percentage:.1f}%

pplaydon's picture
Joined: May 8 2017 - 11:18am
Last seen: 11 months 3 weeks ago
Feedback