Add a label in the centre of a donut chart.

Thread is closed for posting
2 posts, 0 answers
  1. Vineet
    Vineet avatar
    2 posts
    Member since:
    Aug 2016

    Posted 08 Dec 2016 Link to this post

    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?

     

  2. Deyan
    Admin
    Deyan avatar
    2123 posts

    Posted 13 Dec 2016 Link to this post

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