Unplanned
Last Updated: 20 Feb 2020 13:59 by ADMIN
ADMIN
Yana
Created on: 20 Dec 2017 07:45
Category: Chart
Type: Bug Report
1
Chart: [iOS] Vertical axis labels are not displayed if the series is added dynamically
If the series is added after the page constructor, the vertical axis labels are not shown.

As a workaround, create the series in the constructor and set its ItemsSource at a later stage.
4 comments
ADMIN
Yana
Posted on: 20 Feb 2020 13:59

Hello Nicholas,

Thank you for sending the screenshots.

You've come across another issue not related specifically to the suggested workaround.  Basically when the series are added/removed or updated dynamically, much of the iOS chart is completely refreshed. I've logged this on your behalf as a separate bug report in our public feedback portal, here is the link where you can track its status:

https://feedback.telerik.com/xamarin/1454595-chart-ios-any-customizations-made-in-the-custom-renderer-are-reset-when-chart-series-are-updated

As a workaround, you can override OnSeriesCollectionChanged event of the renderer,  then subscribe to PropertyChanged event of each Chart series and repeat the customizations.  The exact approach depends on the scenario, so if you need further assistance, please submit a support ticket with more details on the concrete case.

Regards,
Yana
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
Nicholas
Posted on: 18 Feb 2020 23:57

The proposed workaround does not work. When setting the ItemsSource at a later stage (e.g., OnAppearing for the ContentPage), all of the axis changes applied in the custom renderer are completely reverted. I've wasted my entire day trying to work around the issue to no avail.

Initial state, both series created with series 2 ItemsSource null:

After 5 seconds, series 2 ItemsSource is set and Y-Axis customizations are reverted:

ADMIN
Yana
Posted on: 20 Feb 2019 07:16
Hi Vitaly,

Thank you for your input.  This issue is with high priority in our backlog and hopefully, we'll manage to resolve it for some of the upcoming minor releases.

Regards,
Yana
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
Vitaly
Posted on: 19 Feb 2019 15:31
Workaround is not really useful, please fix the issue! Otherwise the chart looks strange.