Reducing highlighted inner radius doughnut chart

6 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 15 Jul 2015 Link to this post

    Hi, 

     I've been trying to change highlighted inner radius in PieChart using DoughnutSeries but it's not making any affect.Though HighlightBrush does make affect. Please help me out with this. I want to change the outer radius of Pie Chart which is little faded.

    Regards,
    Muhammad Hassan

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 17 Jul 2015 Link to this post

    Hi Muhammad,

    I think I understand your requirement. If you need to change the space that the lighter color of the default palette of the DoughnutSeries takes, you need to keep in mind that this is achieved with a gradient brush. Unfortunately the DoughnutSeries does not expose mechanism for customizing just that color.

    However, there is a possible approach that you can try out. You can define custom palette that will be used instead of the default one. Please take a look at our Define and Use Custom Chart Palette article. In your particular scenario instead of defining solid color brushes you can define the required gradient brush using the appropriate colors.

    Please give this approach a try and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 22 Jul 2015 in reply to Pavel R. Pavlov Link to this post

    Hi Pavel,

    Thank you for assisting me on this issue. I've tried the approach you mentioned but still that outer highlighted border width doesn't change at all. Event if I fill transparent in custom palette, that outer border is still there (have a look at attached image). In addition, gradients usually have soft edges of gradient stops but here on chart, edges are sharp. Please help me complete this task.

    Regards,
    Muhammad Hassan

  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 24 Jul 2015 Link to this post

    Hello Muhammad,

    Please accept my apologies. I did not understand your requirement and have mislead you with my previous reply.

    Let me make sure that I understand what you need. As far as I understand you need to change the color of the outer color of the slices. The light green color on the attached picture.

    If you need to change the color only, you should use the DoughnutSeries.HighlightBrush property. It controls the color of the element used to visualize that component. This is the recommended way to change its color.

    If however, you need to customize it in another way, I would like to kindly ask you to elaborate more on that requirement.

    I hope this information is helpful.

    Regards,
    Pavel R. Pavlov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Muhammad
    Muhammad avatar
    7 posts
    Member since:
    Nov 2014

    Posted 24 Jul 2015 in reply to Pavel R. Pavlov Link to this post

    Hi Pavel,

    No problem. That's exactly the part I was pointing to. As you've used DoughnutSeries.HighlightBrush property to change it's color, I'd like to reduce it's width. I've already tried DoughnutSeries.HighlightInnerRadiusFactor but it didn't work. I want to make that light green part thinner. 

    Regards,
    Muhammad Hassan

  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 24 Jul 2015 Link to this post

    Hello Muhammad,

    Thank you for confirming this. I would like to inform you that the HighlightInnerRadiusFactor property does not work as it is expected to when it is applied to the DoughnutSeries. We will further investigate this scenario and we will address it in our upcoming releases.

    However, it works as it should in the PieSeries. In your particular case you need to make that part of the slices thinner, hence you can try setting that property to whatever number in the range from 0.95 to 1. 

    Please try this suggestion out and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top