Annotaions for Donut Chart

Thread is closed for posting
4 posts, 0 answers
  1. Ankit
    Ankit avatar
    8 posts
    Member since:
    Jan 2015

    Posted 14 Apr 2015 Link to this post



    I want to know that which annotation can be best viewed on donut chart.

    Also how to display the annotation at the point of tap or point of slice of donut chart.




  2. Adrian
    Adrian avatar
    174 posts

    Posted 15 Apr 2015 Link to this post

    Hi Ankit,

    Thank you for contacting us.

    The annotations in TKChart are designed to work with cartesian chart and shouldn't be used with pie or donut chart. Instead you should use point labels. To enable point labels for your donut series you should set the textHidden property of TKChartPointLabelStyle to NO. Please consider the code snippet below: = NO;

    If you need to change the text of your label you should implement the chart:textForLabelAtPoint:inSeries:atIndex: method of TKChartDelegate and return the text for the corresponding label:
    - (NSString *)chart:(TKChart *)chart textForLabelAtPoint:(id<TKChartData>)dataPoint inSeries:(TKChartSeries *)series atIndex:(NSUInteger)dataIndex
        return @"label text";

    I hope this helps. Should you have further questions do not hesitate to contact us.


    See What's Next in App Development. Register for TelerikNEXT.

  3. Enrique
    Enrique avatar
    4 posts
    Member since:
    Apr 2016

    Posted 15 Apr 2016 in reply to Adrian Link to this post

    Hi, if I need to change the Label for a Point label when is selected but I have implemented the LabelForDataPoint method. How can I indicate that only show my custom Text but only when is selected-
  4. Adrian
    Adrian avatar
    174 posts

    Posted 20 Apr 2016 Link to this post

    Hi, Enrique,

    Currently TKChart does not support editing separate point labels. This is already logged in our feedback portal. You can follow the status of the feature request there.

    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