Pie Chart slices colors (chart.xaml)

2 posts, 0 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 23 Sep 2010 Link to this post

    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

  2. Yavor
    Yavor avatar
    401 posts

    Posted 29 Sep 2010 Link to this post

    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:

        <SolidColorBrush Color="Green" />
        <SolidColorBrush Color="Orange" />

    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
Back to Top