Home forums Report Bugs Labels are not coming in pie chart

This topic contains 3 replies, has 2 voices, and was last updated by  Vishwas R 1 year, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21113

    Hi
    I have used pie chart. But some of the labels are not coming. Also during responsiveness, it’s not showing any of the labels.

    Thanks

    #21119

    @jenia,

    indexLabels/labels in Pie Chart are skipped whenever they get closer to other indexLabels – this behavior is by design. You can workaround this issue by either rotating the Pie Chart as shown in this JSFiddle or by showing indexLabel outside the Pie Chart as shown in this JSFiddle – indexLabel’s are placed better when they are outside.

    It would be useful if you can create a JSFiddle demonstrating the issue with minimal code, so that we can look into your code, understand the scenario better and guide you accordingly.


    Vishwas R
    Team CanvasJS

    #21120

    I tried rotating it to different angles, but every time one label was missing. So I reduce the width of the pie graph. Now it’s working fine

    Thanks for the solution.

    #21123

    @jenia,

    Glad that it’s working fine :)


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.