Xamarin.Forms Chart not clickable in iOS

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

    Posted 10 Mar Link to this post

    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. 

  2. Answer
    Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 14 Mar 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.

    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
  3. DevCraft banner
Back to Top