<UserControl x:Class="IntersoftPresenter.ChartPresenter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             
    xmlns:controls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls"
    xmlns:charting="clr-namespace:Microsoft.Windows.Controls.DataVisualization.Charting;assembly=Microsoft.Windows.Controls.DataVisualization"
    >
    <Grid x:Name="LayoutRoot">
        <charting:Chart Title="Number of Customers per Contact Title" x:Name="ChartView1">
            <charting:Chart.Series>
                <charting:PieSeries
                            Title="Contact Title"                            
                            IndependentValueBinding="{Binding Key}"
                            DependentValueBinding="{Binding Count}">
                    <charting:PieSeries.Template>
                        <ControlTemplate TargetType="charting:PieSeries">
                            <Canvas x:Name="PlotArea" RenderTransformOrigin="0.5,0.5">
                                <Canvas.RenderTransform>
                                    <RotateTransform Angle="125"/>
                                </Canvas.RenderTransform>
                            </Canvas>
                        </ControlTemplate>
                    </charting:PieSeries.Template>
                </charting:PieSeries>
            </charting:Chart.Series>
        </charting:Chart>
    </Grid>
</UserControl>
