Problem with WPF Pie Chart

Apr 7, 2012 at 7:07 AM

Hello I'm trying to use a pie chart but I only see the last slice of the data series ! I guess I forget something somewhere.  Any Idea ?

<DVC:Chart Canvas.Top="80" Canvas.Left="10" Name="sprinteffort" Margin="356,314,534,13" BorderThickness="3"

BorderBrush="#FF000000" Loaded="PieSeries_Loaded">
                       
<DVC:Chart.Series>
    <DVC:PieSeries Title="Experience"
         IndependentValueBinding="{Binding Path=Key}"
         DependentValueBinding="{Binding Path=Value}">
    </DVC:PieSeries>
</DVC:Chart.Series>

C# code:

var list = new List<KeyValuePair<string, int>>();
list.Add(new KeyValuePair<string, int>("Cat", 1));
list.Add(new KeyValuePair<string, int>("Dog", 2));
list.Add(new KeyValuePair<string, int>("Rabbit", 4));
((PieSeries)sprinteffort.Series[0]).ItemsSource = list;

Apr 10, 2012 at 7:03 AM

Anyone ?

Apr 10, 2012 at 3:16 PM
Edited Apr 10, 2012 at 3:17 PM

This is not the right place to ask your question.  Try here instead:

http://social.msdn.microsoft.com/Forums/en-US/wpf/threads

or

http://www.stackoverflow.com