Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Grouping data in pie charts

Open rferreira98 opened this issue 2 years ago • 5 comments

Feature Proposal

Grouping for pie charts. It would be of great help to somehow group data in categories and show it in a pie chart where the slices are together.

Possible Implementation

No response

rferreira98 avatar Jan 24 '22 17:01 rferreira98

@rferreira98 Hello I want to work on this issue if there is no one working on this issue.Can u assign it to me?

AjayPratapSingh823 avatar Jan 31 '22 10:01 AjayPratapSingh823

@rferreira98 Hello I want to work on this issue if there is no one working on this issue.Can u assign it to me?

I can't really assign it. No permissions do that.

rferreira98 avatar Feb 01 '22 11:02 rferreira98

@rferreira98 do you have a picture of what you want the chart to look like?

etimberg avatar Feb 01 '22 12:02 etimberg

Ignore the labels. Grouping by colors for example. In order to show categories and sub-categories image

rferreira98 avatar Feb 04 '22 10:02 rferreira98

If I understand correct, you want multiple items to be group to a single legend item and have all of them toggle at once. It is possible to build this now, but it requires some configuration to get the legend showing the right stuff. https://jsfiddle.net/erwaqbfx/

etimberg avatar Feb 04 '22 13:02 etimberg