I have created a pie chart with you most recent binaries. I ran it and everything looked good (spider mode was visible) but then when I applied a SeriesItemLabelStyle to my pie chart the connectors no longer show up? Am I missing a property in the style? Here is my style and also a code snippet of where I apply it. I also attached a screen shot of the pie chart.
and also this:
I thought I found a couple similar posts on this but none of the replies seemed to work.
<Style x:Key="PieLabelStyle" TargetType="series:SeriesItemLabel"> <Setter Property="ConnectorVisibility" Value="Visible" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="series:SeriesItemLabel"> <Border x:Name="PART_TextContainer" BorderBrush="Black" CornerRadius="2" BorderThickness="1" Style="{TemplateBinding LabelStyle}"> <Grid > <Grid.ColumnDefinitions > <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding DataItem.XVal}" Foreground="Black" /> <TextBlock Grid.Column="1" Text="{Binding DataItem.YVal}" Foreground="Black" /> <Rectangle Fill="LightBlue" Opacity=".3" Grid.ColumnSpan="2"/> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>I tried this in the Chart_DataBound method:
(series.Definition as SeriesDefinition).SeriesItemLabelStyle = _resources["PieLabelStyle"] as Style;
and also this:
(definitions[0] as RadialSeriesDefinition).SeriesItemLabelStyle = _resources["PieLabelStyle"] as Style;
I thought I found a couple similar posts on this but none of the replies seemed to work.