The question mentions it all: I have a piechart that summarizes a distribution of my records over some categories. Now there are quite a few that have 0 records so that category doesn’t show up in the chart, but it does in the legend. Since there are quite a lot of categories, the chart becomes cluttered. Is there a way to hide the unused categories in the legend?