This question is locked. New answers and comments are not allowed.
Do PieChart colors just NOT work in Q3 2011??
I followed this example here
Sample code:
My code:
What I get is an ALL blue pie chart (binding works fine), the representation of the data is correct 80% slice and a 20% slice, but both slices are blue.
I've tried using the PaletteBrushes but all I get is "Attachable property 'PaletteBrushes' was not found in type RadPieChart.
So how the heck do I set pie chart slice colors for Q3 2011??
I know when I use the Microsoft PieSeries control it takes about 1000 lines of code just to adjust the pie slice color, I was hoping Telerik controls would be MUCH more simple?
Rob
I followed this example here
Sample code:
<chart:RadPieChart x:Name="PieChart" Palette="{Binding Palette}" Grid.Row="1"> <chartView:PieSeries ValueBinding="Value" ItemsSource="{Binding Data}" RadiusFactor="0.77"> <chartView:PieSeries.LabelDefinitions> <chartView:ChartSeriesLabelDefinition Margin="-30,0,0,0" /> </chartView:PieSeries.LabelDefinitions> <chartView:PieSeries.AngleRange> <charting:AngleRange StartAngle="270" SweepAngle="360" /> </chartView:PieSeries.AngleRange> </chartView:PieSeries> </chart:RadPieChart>My code:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"xmlns:charting="clr-namespace:Telerik.Charting;assembly=Telerik.Windows.Controls.Chart"xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart" <chart:RadPieChart x:Name="TestChart" Grid.Column="1" Margin="8" Grid.Row="1" Palette="{Binding Palette}"> <chartView:PieSeries DataContext="{Binding Source={StaticResource UnitsDelinquentChartData}}" ItemsSource="{Binding Collection}" ValueBinding="PercentValue"> </chartView:PieSeries> </chart:RadPieChart>What I get is an ALL blue pie chart (binding works fine), the representation of the data is correct 80% slice and a 20% slice, but both slices are blue.
I've tried using the PaletteBrushes but all I get is "Attachable property 'PaletteBrushes' was not found in type RadPieChart.
So how the heck do I set pie chart slice colors for Q3 2011??
I know when I use the Microsoft PieSeries control it takes about 1000 lines of code just to adjust the pie slice color, I was hoping Telerik controls would be MUCH more simple?
Rob
