Generalizing pie chart data