Charting: crosstab functionality on pie chart

Oct 15, 2009 at 3:06 PM

I need to display the totals of values in a PieChart.

Let's say the input is 10, 10, 20 then I need 2 pies in the chart, the one with value of 10 takes up 2/3 of the pie and the slice for the value of 20 1/3.

I can of course count all my distinct values in the observable collection and then create the chart, but I was wondering whether there was a more elegant solution.