Xamarin.Forms Chart not clickable in iOS

2 posts, 1 answers
  1. Weston
    Weston avatar
    2 posts
    Member since:
    Feb 2016

    Posted 10 Mar 2016 Link to this post


    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. 

  2. Answer
    Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 14 Mar 2016 Link to this post

    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.

    Rosy Topchiyska
    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