Reputation: 45
I am creating a Pie chart in which I have to show any amount of data. Now the problem is, it is not showing all of the dataLabels. Here is what I am getting :
Please have a look into jsfiddle example: example
A possible solution would be to decrease the line spacing/ distance between the labels. Or any other solution ?
Upvotes: 2
Views: 3018
Reputation: 7372
Data labels are not rendered because there is not enough space for them. However, you can decrease the font size, and set padding = 0
to make more space for them.
Code:
dataLabels: {
padding: 0,
style: {
fontSize: '8px'
}
}
Demo:
API reference:
https://api.highcharts.com/class-reference/Highcharts.DataLabelsOptionsObject#style
https://api.highcharts.com/class-reference/Highcharts.DataLabelsOptionsObject#padding
Upvotes: 1