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 week, 1 day ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #17526

    Carl
    Member

    I have a fiddle here:

    https://jsfiddle.net/hf3j3cmf/1/

    I notice the labels aren’t appearing for some items. Any idea why?

    Thanks,

    Carl

    #17527

    Carl
    Member

    I’ve also noticed that if I reduce the font size for the labels, more labels do appear.

    #17537

    Indranil Deo
    Member

    Carl,

    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.

    ___________
    Indranil Deo,
    Team CanvasJS

    #17538

    Carl
    Member

    On the fiddle there is loads of space available, like the segment that covers 240deg of the pie. Why is that one not showing?

    #17539

    Carl
    Member

    Is there any way to reduce the size of the actual pie, and so give more space for labels?

    #17540

    Carl
    Member

    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.

    #17556

    Indranil Deo
    Member

    Carl,

    You can control the size of the Pie/Doughnut chart by setting the radius property.

    ___________
    Indranil Deo,
    Team CanvasJS

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.