doughnut char labels are not showing properly when there is a smller slice in the chart.
I am trying to use it using the web url. let me share the configuration I am trying here on for reference :
labels: ['A', 'B', 'C', 'D', 'E', 'F'],
data: [5, 5, 55, 555, 5555, 55]
the solutions or response would be very helpfull. thanks.
What is the desired behavior here? The area is too small to show all the labels. If you set
display: 'auto' for datalabels, then overlapping labels will be prevented based on the following rules:
- if both labels are display: true, they will be drawn overlapping
- if both labels are display: ‘auto’, the one with the highest data index will
- If labels are at the same data index, the one with the highest dataset index will
- If one label is display: true and the other one is display: ‘auto’, the one with ‘auto’ will be hidden (whatever the data/dataset indices)
Here’s a link to your modified chart
See datalabels documentation for more info.
You may also be interested in the
outlabeledPie chart type (documentation). It is not compatible with the doughnutlabels plugin though.
Here’s an example