This is a migrated thread and some comments may be shown as answers.
Xamarin.iOs not updating annotations position when maximum attribute changes
2 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 18 Jul 2017, 01:05 AM

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 Answers, 1 is accepted

Sort by
0
Gabriel
Top achievements
Rank 1
answered on 18 Jul 2017, 01:32 AM

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

0
Stefan Nenchev
Telerik team
answered on 20 Jul 2017, 10:36 AM
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
Tags
Chart
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Gabriel
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or