Make the pie chart search work for all groups and all categories