Xamarin.iOs not updating annotations position when maximum attribute changes

3 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    2 posts
    Member since:
    Jul 2017

    Posted 17 Jul Link to this post

    Hi guys, I hope you can help me. I have an annotation on a chart at the value of 100 of a numerical vertical axis. Originally the maximum number allowed by the vertical axis is 200 (so the annotation is in the center of the chart), but I am changing dynamically at runtime if the value of the data goes over that value.

    This works perfectly on android, but in iOS the position of the annotaion doesn't change while the whole chart resizes, and instead of moving to the right position, it stays at the center of the chart.

    I tried removing the annotation and re adding it after modifying the value but it didn't work.

    Is this a known bug? How can I work it around?

    Thanks

  2. Gabriel
    Gabriel avatar
    2 posts
    Member since:
    Jul 2017

    Posted 17 Jul in reply to Gabriel Link to this post

    I found a workaround... I am removing the chart from the parent and adding it again. It's pretty nasty though, it would be good if you guys can fix this.

     

    Thanks

  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    503 posts

    Posted 20 Jul Link to this post

    Hello Gabriel,

    I am glad to see that you have managed to find a workaround for the issue. However, indeed the behavior sounds quite disruptive. Would it be possible to share more information on your scenario so we can replicate it and investigate it from our side? What series are you using and how do you modify the data points? Providing a sample will be highly appreciated. You can use some of the Annotations example available in the iOS Examples application(can be found in your local installation -> Examples/iOS/Examples.sln).

    Have a great rest of the week.

    Regards,
    Stefan Nenchev
    Progress 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
Back to Top