XAML:
xmlns:tk="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
Title="One Pie" Height="350" Width="525" Loaded="Window_Loaded">
CS:
using System.Windows.Controls.DataVisualization.Charting;
private void Window_Loaded(object sender, RoutedEventArgs e) {
chart.DataContext = new KeyValuePair[] {
new KeyValuePair("Dog", 30),
new KeyValuePair("Cat", 25),
new KeyValuePair("Rat", 5),
new KeyValuePair("Hampster", 8),
new KeyValuePair("Rabbit", 12) };
}