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

Binding RadPieChart slice to a brush property

1 Answer 46 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eyal Ellenbogen
Top achievements
Rank 1
Eyal Ellenbogen asked on 14 Jul 2012, 09:23 PM
Hi,

I have a collection and each item in this collection contains a "Brush" property. I want to show this data using the RadPieChart and I want to bind each slice to its appropriate brush. I found many posts about setting the Pallete but that's not what I need. I need each slice to be aware of its data item and the brush it is containing. Is it possible?

Thanks,
Eyal

1 Answer, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 19 Jul 2012, 07:31 AM
Hello Eyal,

You need to use a style selector and return a style depending on the value of the DataItem.Color property. Please find attached a small project showing how to achieve that.

Kind regards,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Eyal Ellenbogen
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or