Hello,
I have a RadPieChart which not displaying the slices correctly when one slice is 100% and the other is 0%. No color is being applied to the 100%. I am using a converter to color each slice a specific color but the converter is not getting called.
Note -- it works fine for all other variations of values.
Any help would be apprecieated.
Thanks,
Tracy Jenkins
I have a RadPieChart which not displaying the slices correctly when one slice is 100% and the other is 0%. No color is being applied to the 100%. I am using a converter to color each slice a specific color but the converter is not getting called.
Note -- it works fine for all other variations of values.
<chart:RadPieChart Palette="{Binding Palette}" Height="{Binding Path=PieChartHeight}" Width="{Binding Path=PieChartWidth}" > <chart:RadPieChart.Behaviors> <chartView:ChartTooltipBehavior Placement="Mouse" HorizontalOffset="0" VerticalOffset="-1" /> </chart:RadPieChart.Behaviors> <chart:RadPieChart.TooltipTemplate> <DataTemplate> <Grid> <Path Data="M-1236,-441 L-1180,-441 -1180,-424 -1228,-424 -1236,-424 z" Stretch="Fill" Fill="White" Stroke="Gray" StrokeThickness="1" /> <StackPanel Margin="4,3,4,9" > <TextBlock Text="{Binding Value}" FontFamily="Segoe UI" /> </StackPanel> </Grid> </DataTemplate> </chart:RadPieChart.TooltipTemplate> <chartView:PieSeries ValueBinding="Value" ItemsSource="{Binding DataPoints}" RadiusFactor="0.77" > <chartView:PieSeries.LabelDefinitions> <chartView:ChartSeriesLabelDefinition Margin="-30,0,0,0" /> </chartView:PieSeries.LabelDefinitions> <chartView:PieSeries.AngleRange> <charting:AngleRange StartAngle="10" SweepAngle="360" /> </chartView:PieSeries.AngleRange> <chartView:PieSeries.SliceStyles> <Style TargetType="Path"> <Setter Property="Stroke" Value="Gray"/> <Setter Property="StrokeThickness" Value="1"/> <Setter Property="Fill" Value="{Binding Converter={StaticResource pieChartSliceToColorConverter}, ConverterParameter=0}"/> </Style> <Style TargetType="Path"> <Setter Property="Stroke" Value="Gray"/> <Setter Property="StrokeThickness" Value="1"/> <Setter Property="Fill" Value="{Binding Converter={StaticResource pieChartSliceToColorConverter}, ConverterParameter=1}"/> </Style> <Style TargetType="Path"> <Setter Property="Stroke" Value="Gray"/> <Setter Property="StrokeThickness" Value="1"/> <Setter Property="Fill" Value="{Binding Converter={StaticResource pieChartSliceToColorConverter}, ConverterParameter=2}"/> </Style> </chartView:PieSeries.SliceStyles> </chartView:PieSeries></chart:RadPieChart>Any help would be apprecieated.
Thanks,
Tracy Jenkins