How to get the rotated angle of the Donut chart or response when rotating the donut chart?

2 posts, 0 answers
  1. gun
    gun avatar
    2 posts
    Member since:
    Jul 2015

    Posted 23 Dec 2015 Link to this post

    Hi ,is it possible to get the rotated angle of the donut or response when rotating the donut in the chart?
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 23 Dec 2015 Link to this post

    Hi gun,

    The rotationAngle property of TKChartPieSeries contains the angle to which the pie is currently rotated. The selectionAngle is the angle where the selected pie slice will be located.  There is no specific event that  is called when rotating the chart, however you can use the chart:didSelectPoint:inSeries:atIndex: method that is called when a pie slice is selected:
    - (void)chart:(TKChart *)chart didSelectPoint:(id<TKChartData>)point inSeries:(TKChartSeries *)series atIndex:(NSInteger)index
    {
        NSLog(@"selected");
    }

    Regards,
    Jack
    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. DevCraft banner
Back to Top