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

DoughnutSerie customization

2 Answers 34 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.
Jean-Charles
Top achievements
Rank 1
Jean-Charles asked on 12 Mar 2015, 12:48 PM
Hi,

I have a DoughnutSerie inside a RadPieChart. I would like to bind the color of segments to some value in my model.
I believe I shoud provide some style in DefaultSegmentStyle, but i cannot find what component to set (tried Path.Fill with no success).

I cannot find any documentation (at least for Universal). Thanxs in advance for any help!

2 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 17 Mar 2015, 11:09 AM
Hello Jean,

Thank you for contacting us.

You can not bind the color of the segments to a property of your model directly, but you can use the SegmentStyle or the SegmentStyleSelector properties of DoughnutSeries depending on whether you wish to apply a style on the whole series or on each data point (segment). The target type of the segment style is Path. I have attached a sample application that demonstrates how you can use the SegmentStyleSelector.

Here is the documentation article for DoughnutSeries, and the style properties are inherited from its base class: PieSeries.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jean-Charles
Top achievements
Rank 1
answered on 17 Mar 2015, 09:23 PM
Great!

Your sample helped me a lot, everything is working perfectly now.

Thanxs a lot
Tags
Chart
Asked by
Jean-Charles
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Jean-Charles
Top achievements
Rank 1
Share this question
or