Pooja
Pooja

Reputation: 45

HighCharts Pie chart is not showing all of dataLabels, it's cut off

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 : enter image description here

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

Answers (1)

Wojciech Chmiel
Wojciech Chmiel

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:

Upvotes: 1

Related Questions