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) {
mcChart.LegendTitle = "Legend";
mcChart.LegendTitle = "Legende";
ColumnSeries cs1 = ((ColumnSeries)mcChart.Series[0]);
cs1.ItemsSource =
new KeyValuePair[]{
new KeyValuePair("M1", 100),
new KeyValuePair("M2", 130),
new KeyValuePair("M3", 150),
new KeyValuePair("M4", 125),
new KeyValuePair("M5",155) };
ColumnSeries cs2 = ((ColumnSeries)mcChart.Series[1]);
cs2.ItemsSource =
new KeyValuePair[]{
new KeyValuePair("M6", 110),
new KeyValuePair("M7", 140),
new KeyValuePair("M8", 250),
new KeyValuePair("M9", 325),
new KeyValuePair("M10",155) };
}