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

Reducing highlighted inner radius doughnut chart

5 Answers 124 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.
Muhammad
Top achievements
Rank 1
Muhammad asked on 15 Jul 2015, 10:55 AM

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

5 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 17 Jul 2015, 11:02 AM
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
0
Muhammad
Top achievements
Rank 1
answered on 22 Jul 2015, 09:43 AM

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

0
Pavel R. Pavlov
Telerik team
answered on 24 Jul 2015, 08:47 AM
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
0
Muhammad
Top achievements
Rank 1
answered on 24 Jul 2015, 11:49 AM

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

0
Pavel R. Pavlov
Telerik team
answered on 24 Jul 2015, 01:27 PM
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
Tags
Chart
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or