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

Add a label in the centre of a donut chart.

1 Answer 152 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.
Vineet
Top achievements
Rank 1
Vineet asked on 08 Dec 2016, 12:56 PM

I have a requirement to add a label at the centre of a donut chart. See attached image. I have created a pie chart and a donut series. The donut series has a LabelDisplayMode property, but it is used to display labels on the slices. Is there a existing property or method to achieve this? If not, programmatically adding a label at the centre of the graph would require locating it's exact centre. What would be the best way to achieve this?

 

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 13 Dec 2016, 07:56 AM
Hello Vineet,

You can basically position the label in the middle of the Frame that hosts the chart. That can be easily calculated.

Regards,
Deyan
Telerik by Progress
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
Vineet
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or