Group values in pie chart

1 Answer 58 Views
Chat
Fabio
Top achievements
Rank 1
Iron
Iron
Fabio asked on 15 Jun 2022, 12:01 AM
Hello,

I would like to group values in my pie chart, for example, unite all values less than 20%, how can I?

Thank you very much in advance

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 17 Jun 2022, 01:24 PM

Hi Fabio,

The Pie chart does not support the manipulation of the data. 

That means you should modify the data to create a single value that will represent the sum of the other values. For example:

Item 1 - 50%
Item 2 - 30% 
Item 3 - 5% 
Item 4 - 15%

Should be modified so Item 3 and Item 4 are combined and the data you pass to the HtmlChart should be like this:

Item 1 - 50%
Item 2 - 30% 
Item Others - 20% 

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Chat
Asked by
Fabio
Top achievements
Rank 1
Iron
Iron
Answers by
Peter Milchev
Telerik team
Share this question
or