Setting Pie Chart Color

8 posts, 0 answers
  1. Timothy Garton
    Timothy Garton avatar
    14 posts
    Member since:
    Sep 2009

    Posted 06 Apr 2010 Link to this post

    Hello,

    I am trying to set colors to individual PieChart wedges. I've looked through the examples and forum and I have found information on styling a chart series here. It steps through several different methods, however none of them I can use.

    The first relies on the individual series definition, I am using a pie chart with only one series definition.

    The second does not seem to change the legend color and that is something I need.

    The third uses Palette Brushes, which are disabled according to this post. The example you give about colors in the Telerik silverlight example section uses palette brushes as well.

    Most queries about the chart colors Ive found in the chart forum (at least for pie charts) mention that there will be an easier method  in the Q1 release. Has there been a method released that I have not found, or is there currently no way to change individual pie wedge colors? And if not, is there any estimated time to when there will be?

    Thank you for your help.
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 08 Apr 2010 Link to this post

    Hello Michael Stewart,

    The easy method for customizing the chart palette involves the PaletteBrushes property of RadChart. Note, that the subject of the forum thread, that says it is disabled is the ChartArea.PaletteBrushes property. That is -- we wanted to provide both - palette for the entire chart (which should suffice in most of the cases) and palette for every chart area. The latter is the one which has been disabled for the moment, but we will bring it back with SP1. Still, the RadChart.PaletteBrushes property is available and you can use it.

    You can find an example here.

    Best regards,
    Ves
    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.
  3. DevCraft banner
  4. andrea bellagamba
    andrea  bellagamba avatar
    43 posts
    Member since:
    Jul 2009

    Posted 21 Jun 2010 Link to this post

    Hi,
     I am also trying to set my custom PaletteBrush for a Pie chart,
    Unfortunatly there seems to be a problem when the Theme is set to Windows7.

    You can see an example of this on your own demo site. http://demos.telerik.com/silverlight/#Chart/CustomPalette
    If you select any other theme but Windows7 the palette customization seem to work, but not with Windows7.

    Any solution?

    Thanks
  5. Velin
    Admin
    Velin avatar
    391 posts

    Posted 24 Jun 2010 Link to this post

    Hello andrea bellagamba,

    Unfortunately, you are right. Our development team is already aware of this problem and will try to clear it out in a future version of the control. The only thing we can suggest you is to use a different theme.

    Please, accept our apologies for this inconvenience.

    Greetings,
    Velin
    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
  6. David
    David avatar
    1 posts
    Member since:
    Mar 2011

    Posted 03 Mar 2011 Link to this post

    This still appears to be an issue. Is there a work around for it yet?
  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 08 Mar 2011 Link to this post

    Hi David,

    Our developers are doing their best to improve this behavior and include the update in the Q1 release. Until then, you can find attached a small example showing how to use custom colors with Windows7 theme.

    Best regards,
    Ves
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. Rob Ainscough
    Rob Ainscough avatar
    172 posts
    Member since:
    Jan 2010

    Posted 18 Jan 2012 Link to this post

    I'm using Q3 2011 and when I try to use the Telerik sample on my RadPieChart I get "The attachable property PaletteBrushes was not found in type RadPieChart"??

    I'm amazed at how difficult it is to set Pie Chart color slices using either Telerik or Microsoft's toolkit ... it's terrible!!  Something so VERY simple has cause me 2 days of searching still some solutions taking upto 1000 lines of code just to change a pie chart slice color!!!

    Am I going insane, is this really the future of rapid application development??  If so, this IS NOT RAPID, it's frankly ridiculous!

    Rob

  9. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 23 Jan 2012 Link to this post

    Hi Rob,

    PaletteBrushes is exposed by RadChart for Silverlight, while the property exposed by RadPieChart (as part of  RadChartView) is called Palette. I believe Giuseppe has provided a detailed reply in another forum thread you have started.


    Best regards,
    Ves
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner