Display value on the Pie Chart

Jan 15, 2014 at 7:23 AM
Hi,

I am using Piechat from WinRt Xaml ToolKit. In this when i hover the mouse on graph its showing respective values. Now i want to print these values on each slice PieDataPoints respectively instead of mouse hover.

I am using the below code, can you please let me how to achieve the value on the pie chat

Title="Population"
                ItemsSource="{Binding Items}"
                IndependentValueBinding="{Binding Name}"
                DependentValueBinding="{Binding Value}"
                IsSelectionEnabled="True"  >
                <charting:PieSeries.DataPointStyle>
                    <Style TargetType="charting:PieDataPoint">
                        <Setter Property="Width" Value="40" />
                        <Setter Property="Height" Value="30" />
                        <Setter Property="Background" Value="#26a926"/>
                        <Setter Property="BorderBrush" Value="Black"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="charting:PieDataPoint">
                                        <Grid>
                                        <TextBlock Text="{Binding Value}" />
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>

                    </Style>
                </charting:PieSeries.DataPointStyle>

            </Series:PieSeries>