I am creating my first pie chart based on data from a SQL database, and I have it showing with no issues.
But I'd like to be able to allow the user to select and de-select which slices to show. The reason for this is that sometime a particular slice is so large that it overshadows the other slices.
I've though about different ways to do that. They could click on a slice to toggle it, but then I'm afraid that it would also disappear from the legend and so they couldn't click to get it back.
Another option is to include a checkbox next to each of the legends items as I have mocked up in the attached picture.
Is there an easier way to handle this?
Thanks!