Is it possible to group pie chart by properties/data source rather than numeric values

Hello,

I am using the SfAccumulationChart with Blazor Server side.

I have two objects, which have the same properties on them. I would like to display the difference between these two objects values visually in a pie chart.

The pie chart should have two segments, which show the difference between the sum of their properties values. Then when the user clicks on one of the segments, it will explode and show each properties name/value.

I have found the explode and GroupMode/GroupTo, which looks very close to what I want. But rather than grouping all the values that are below a specified number, I would like to group them by their parent object.

I have included a link to an image, which is a diagram to show clearly what I'm hoping to achieve. 

https://imgur.com/a/bIva66b

Note: the data used in the diagram is for demonstration purposes

3 Replies

SM Srihari Muthukaruppan Syncfusion Team February 3, 2021 08:52 AM UTC

Hi Lee, 
 
We have analyzed your query. From that, we would like to let you know that we can achieve your requirement using groupMode as point. But as of now we are facing issues in animation and we have considered this scenario as a bug and logged a bug request on this and you can keep track of it from the below feedback portal link.      
         
   
This fix will be available in our weekly patch release which is scheduled to be rolled out on or before 16 February 2021. We appreciate your patience until then.    
  
Regards,  
Srihari M 



LE Lee February 3, 2021 09:02 AM UTC

Hi Srihari,

Thanks for the reply,

I'm not sure that's exactly what I'm looking for. It looks like we can only group by values below or above a specified amount? In the image I provided as an example, I'd like to be able to group by country, which explodes into cities and gives a breakdown of the countries value. 

From the documentation I can only see a way to group by all values below or above a specified amount, which also groups them into a category called 'Others'. Please let me know if I have missed something.

Thanks,

Lee


SM Srihari Muthukaruppan Syncfusion Team February 4, 2021 09:09 AM UTC

Hi Lee, 
 
We have analyzed your query. From that, we would like to let you know that as of now it is not possible to achieve your requirement. As of now there are only two ways of grouping one through value and other through index. 
 
Let us know if you have any concerns. 
 
Regards, 
Srihari M  


Loader.
Up arrow icon