This is a migrated thread and some comments may be shown as answers.

Change the color of pies in 3D Pie Chart

1 Answer 109 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Yash
Top achievements
Rank 1
Yash asked on 12 May 2011, 02:13 PM
Hi,
I am using telerik 3D pie chart. My Pie chart has 3 legent items and 3 pies for data.
I want to define the different colors than what I see in the current theme.
Where do I set the property in order to change the individual Pie Color for the PieChart.
Thanks
Yash

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 17 May 2011, 01:14 PM
Hi Yash,

You can define custom color palettes through the RadChart.PaletteBrushes property. This works for either 2D or 3D chart types.

<telerik:RadChart x:Name="RadChart1">
    <telerik:RadChart.PaletteBrushes>
        <SolidColorBrush Color="Red" />
        <SolidColorBrush Color="Green" />
        <SolidColorBrush Color="Blue" />
        <SolidColorBrush Color="Gainsboro" />
        <SolidColorBrush Color="GhostWhite" />
        <SolidColorBrush Color="BlueViolet" />
        <SolidColorBrush Color="Firebrick" />
        <SolidColorBrush Color="WhiteSmoke" />
    </telerik:RadChart.PaletteBrushes>
</telerik:RadChart>

RadChart1.DefaultSeriesDefinition = new Pie3DSeriesDefinition();
RadChart1.ItemsSource = new int[] { 11, 20, 13, 14, 50, 10, 15 };

I hope this helps.

Regards,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Yash
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or