Does InnerRadiusFactor on DoughnutSeries have any effect?

4 posts, 0 answers
  1. Jan
    Jan avatar
    24 posts
    Member since:
    Nov 2011

    Posted 27 Jan 2014 Link to this post

    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!
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 28 Jan 2014 Link to this post

    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 >>
  3. DevCraft banner
  4. Jan
    Jan avatar
    24 posts
    Member since:
    Nov 2011

    Posted 29 Jan 2014 in reply to Martin Link to this post

    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.
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 03 Feb 2014 Link to this post

    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 >>
Back to Top