Home › forums › Using CanvasJS › Some labels not appearing on pie chart
This topic contains 6 replies, has 2 voices, and was last updated by Indranil Deo 1 year, 3 months ago.
I have a fiddle here:
I notice the labels aren’t appearing for some items. Any idea why?
I’ve also noticed that if I reduce the font size for the labels, more labels do appear.
indexLabels are skipped when there is limited space available for the indexLabels to display or they get too close to other indexLabels (to avoid overlapping) – this behavior is by design.
You can workaround this issue by rotating the Pie Chart using startAngle.
On the fiddle there is loads of space available, like the segment that covers 240deg of the pie. Why is that one not showing?
Is there any way to reduce the size of the actual pie, and so give more space for labels?
I’ve also noticed that if you make the container height 80% of the width it works fine. Therefore giving it more space to work in for the labels. May help someone else.
You can control the size of the Pie/Doughnut chart by setting the radius property.
You must be logged in to reply to this topic.