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

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

1 Answer 53 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.
gun
Top achievements
Rank 1
gun asked on 23 Dec 2015, 08:09 AM
Hi ,is it possible to get the rotated angle of the donut or response when rotating the donut in the chart?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 23 Dec 2015, 11:05 AM
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
Tags
Chart
Asked by
gun
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or