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

Does InnerRadiusFactor on DoughnutSeries have any effect?

3 Answers 50 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 27 Jan 2014, 05:32 PM
I have changed the value of InnerRadiusFactor on a DoughnutSeries to try to make the doughnut hole smaller but no matter what value I give it, it has no effect.

I have a RadiusFactor of .6. I would like the hole to be very small. Is this possible? Thank you!

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 Jan 2014, 03:00 PM
Hi Nelson,

The InnerRadiusFactor sets the inner radius factor of the series (that is the space that remains empty). Its value is in logical units in the range of [0, 1]. If you want your doughnut hole to be smaller you need to set a smaller InnerRadiusFactor (for example 0.2 or 0.05).

For your convenience I created a project demonstrating the usage of this property. Please have a look at it and let me know if it helps.

Regards,
Martin Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Jan
Top achievements
Rank 1
answered on 29 Jan 2014, 03:07 PM
Thank you. It started working after I restarted Visual Studio so I'm not sure what was happening. I have a suggestion regarding the centering of the doughnut, though. If it would be possible to re-center the entire chart after the labels are displayed, it would be easier to use. Right now, if a label on the bottom has a margin that pushes it down below the image, it can get cut off even with the cart being vertically centered. The same can happen left and right as well. I'm sure this is tricky if the entire chart is not first rendered as a bitmap before being displayed but it can be tricky to get a chart with 2-line labels to display properly.
0
Martin Ivanov
Telerik team
answered on 03 Feb 2014, 05:04 PM
Hi Nelson,

Thank you for your feedback, we highly appreciate it.

Basically this behavior is expected as the component display its labels based on the custom margin you apply. If the available area for the doughnut chart is too small, in order to prevent the labels from getting outside this area you could decrease the RadiusFactor of the series. This will make the chart smaller and will leave more space for the labels. 

Regards,
Martin Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Jan
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jan
Top achievements
Rank 1
Share this question
or