This is a migrated thread and some comments may be shown as answers.
Setting Pie Chart Color
7 Answers 245 Views
This is a migrated thread and some comments may be shown as answers.
Timothy Garton
Top achievements
Rank 1
Timothy Garton asked on 06 Apr 2010, 06:09 PM
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.

7 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 08 Apr 2010, 08:43 AM
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.
0
andrea bellagamba
Top achievements
Rank 1
answered on 21 Jun 2010, 06:16 PM
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
0
Velin
Telerik team
answered on 24 Jun 2010, 02:19 PM
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
0
David
Top achievements
Rank 1
answered on 03 Mar 2011, 03:44 PM
This still appears to be an issue. Is there a work around for it yet?
0
Ves
Telerik team
answered on 08 Mar 2011, 05:57 PM
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!
0
Rob Ainscough
Top achievements
Rank 1
answered on 18 Jan 2012, 08:02 PM
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

0
Ves
Telerik team
answered on 23 Jan 2012, 01:59 PM
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 >>

Tags
Chart
Asked by
Timothy Garton
Top achievements
Rank 1
Answers by
Ves
Telerik team
andrea bellagamba
Top achievements
Rank 1
Velin
Telerik team
David
Top achievements
Rank 1
Rob Ainscough
Top achievements
Rank 1
Share this question
or