<Grid Name="thePieChart" Background="White" HorizontalAlignment="Left" VerticalAlignment="Top">
<toolkit:Chart UseLayoutRounding="True"
Style="{StaticResource Common}"
local:SurrogateBind.FieldsCollection="{Binding Path=Symbol.Fields}">
<toolkit:Chart.Series>
<toolkit:PieSeries Margin="0"
IndependentValueBinding="{Binding Path=Key}"
DependentValueBinding="{Binding Path=Value}" >
</toolkit:PieSeries>
</toolkit:Chart.Series> <!-- Second chart just for the legend-->
<Canvas Name="theLegend" Background="Transparent" Visibility="Collapsed">
<toolkit:Chart Name="Chart2" UseLayoutRounding="True"
Style="{StaticResource Common}"
LegendTitle="{Binding Attributes[stward_name]}"
chartSymbologyColumn:SurrogateBind.FieldsCollection="{Binding Path=Symbol.Fields}">
<toolkit:Chart.Series>
<toolkit:ColumnSeries Margin="0"
IndependentValueBinding="{Binding Path=Key}"
DependentValueBinding="{Binding Path=Value}" />
</toolkit:Chart.Series>
<toolkit:Chart.Template>
<ControlTemplate TargetType="toolkit:Chart">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<chartingPrimitives:EdgePanel x:Name="ChartArea" Style="{TemplateBinding ChartAreaStyle}" />
<toolkit:Legend x:Name="Legend" Grid.Column="1"
Header="{TemplateBinding LegendTitle}">
<toolkit:Legend.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#CC333333"/>
<GradientStop Color="#CCEEEEEE" Offset="1"/>
</LinearGradientBrush>
</toolkit:Legend.Background>
</toolkit:Legend>
</Grid>
</Border>
</ControlTemplate>
</toolkit:Chart.Template>
</toolkit:Chart>
<Canvas.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="0" ScaleY="0"/>
<TranslateTransform X="50" Y="35"/>
</TransformGroup>
</Canvas.RenderTransform>
</Canvas> <ToolTipService.ToolTip>
<StackPanel>
<StackPanel Orientation="Horizontal">
<ContentControl Content="{TemplateBinding IndependentValue }" />
<TextBlock Text=" �?? "></TextBlock>
<ContentControl Content="{TemplateBinding FormattedDependentValue}" />
</StackPanel>
</StackPanel>
</ToolTipService.ToolTip> <toolkit:ColumnSeries Margin="0"
IndependentValueBinding="{Binding Path=Key}"
DependentValueBinding="{Binding Path=Value, StringFormat=c0, ConverterCulture=en-GB}" >
</toolkit:ColumnSeries>
</toolkit:Chart.Series> <toolkit:Chart.Series>
<toolkit:ColumnSeries Margin="0"
IndependentValueBinding="{Binding Path=Key}"
DependentValueBinding="{Binding Path=Value}" >
<toolkit:ColumnSeries.DataPointStyle>
<Style TargetType="charting:ColumnDataPoint">
<Setter Property="DependentValueStringFormat" Value="{}{0:c}" />
</Style>
</toolkit:ColumnSeries.DataPointStyle>
</toolkit:ColumnSeries>
</toolkit:Chart.Series><ContentControl Content="{TemplateBinding FormattedDependentValue}" />
<ContentControl Content="{Binding DependentValue, RelativeSource={RelativeSource TemplatedParent}, StringFormat='{}{0:C}'}" />