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

Pie Chart slices colors (chart.xaml)

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 23 Sep 2010, 01:37 PM

Hi all,

I'm customizing the Chart.xaml resource dictionary of my new Theme.
(I'm using this approach: http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project-telerik-approach.html)

My goal is to define the color pallete of the Pie Chart. Until now I didn't find the way to change/define the color pallete of my Pie chart slices. How does it work ??

I don't want to use any code-behind to do it, just xaml. So, I believe this example is not what I need: http://demos.telerik.com/silverlight/#Chart/CustomPalette

Any ideas?

Thank you,
Nuno Senica

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Sep 2010, 09:21 AM
Hi Nuno,

Thank you for contacting Telerik support!
Palette brushes can be defined in XAML the same way they are defined in the code behind. All you have to do is specify your desired colors like this:

<telerikChart:RadChart.PaletteBrushes>
    <SolidColorBrush Color="Green" />
    <SolidColorBrush Color="Orange" />
</telerikChart:RadChart.PaletteBrushes>

You can find more information on Palette brushes in this topic in our help system.

Best wishes,
Yavor Ivanov
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
Nuno
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or