Configure Pie chart legend

Posted by: sskss1ss2 on 15 August 2022, 8:56 pm EST

  • Posted 15 August 2022, 8:56 pm EST

    I’m having a pie chart with a large dataset. Apparently the legend count increases to more than 1000.

    There are values that are very small in number and occupy a least area space in the Pie chart due to which the legend count is increases and it is truncated.

    Is there any way in wijmo where i can group all the values less than certain criteria under a single name/space and name it as Miscellaneous/Others.

  • Posted 17 August 2022, 6:48 pm EST

    Hello,

    Sorry, but there isn’t any inbuilt method or property to group the data in PieChart. However, you can achieve a similar result by creating a new data source with another object for all the small values in the chart to show as others. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-xpb5ns?file=index.js

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels