This is a migrated thread and some comments may be shown as answers.
Xamarin.Forms Chart not clickable in iOS
1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
Weston
Top achievements
Rank 1
Weston asked on 10 Mar 2016, 10:18 PM

Hello, 

I am trying to make the entire chart rendering area respond to a user's 'tap' by using a TapGestureRecognizer. This works fine when running on Android, but when I run it in iOS, the tap is never recognized. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 14 Mar 2016, 12:27 PM
Hello Weston,

Thank you for contacting us.

The iOS chard does not support gesture recognizers. If you are not going to use any other chart gestures (pan, zoom, tap for selection) then you can disable all chart gestures and add a gesture recognizer to the chart parent. I have attached a sample project for demonstration. Please, note that the iOS chart renderer has to be modified to disable the native chart gestures, see CustomChartRenderer class in the sample.

I hope this helps.

Regards,
Rosy Topchiyska
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
Weston
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or