Broken iOS vertical axis if series added dynamically

4 posts, 0 answers
  1. Vitaly
    Vitaly avatar
    8 posts
    Member since:
    Oct 2012

    Posted 16 Dec 2017 Link to this post

    Hello,

     

    If series added after constructor, e.g. from Appearing event, then vertical axis labels are not displayed.

    Here is a small sample project:

    https://github.com/VitalyKnyazev/ios-chart-issue

     

    In addition, on both Android and iOS if existing series is removed and added back - it is not displayed and on iOS all series can just disappear.

     

    Yours faithfully

    Vitaly Knyazev

  2. Yana
    Admin
    Yana avatar
    4682 posts

    Posted 20 Dec 2017 Link to this post

    Hello Vitaly,

    Thank you for creating the sample project, with it I managed to reproduce both issues with the Chart regarding dynamically added series.

    As to the first issue with the vertical axis labels - I logged it in our Feedback Portal, you could follow the feedback item here: https://feedback.telerik.com/Project/168/Feedback/Details/239304-chart-ios-vertical-axis-labels-are-not-displayed-if-the-series-is-added-dynami in order to get notified when there is progress on it.

    As a workaround you could create the LineSeries in the constructor, but set their ItemsSource property at a later stage, here is a sample snippet:

    chart2.Series.Add(lineSeries11);
    chart2.Series.Add(lineSeries22);
     
    Appearing += (sender, args) =>
    {
        lineSeries11.ItemsSource = points1;
        lineSeries22.ItemsSource = points2;
    };

    Let me know whether such an approach would be suitable for you.

    Regarding the second issue with removing/adding series - again, I logged it, you can find the feedback item here: https://feedback.telerik.com/Project/168/Feedback/Details/239310-chart-dynamically-removed-and-added-series-is-not-displayed-properly

    You could find your Telerik points updated for reporting both issues with the Chart control.

    Could you please give us more details on the exact scenario you have with removing/adding the series, so we could think of a possible workaround?

    I'm looking forward to your reply.

    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
  3. Vitaly
    Vitaly avatar
    8 posts
    Member since:
    Oct 2012

    Posted 20 Dec 2017 in reply to Yana Link to this post

    Hi Yana,

     

    Thank you for logging the issues.

     

    Currently all series are created dynamically when user switches to Charts tab to avoid UI thread blocking, workaround is not really usable in this scenario.

     

    There is accounts tracking application where you can show/hide series for some accounts, see for example "Account Balances" report: https://play.google.com/store/apps/details?id=com.ktechsystems.moneytrackerpro

     

    Not that it is critical functionality but it would be nice to get it fixed, it works just fine for native UWP charts.

     

    Kind regards

    Vitaly Knyazev

  4. Yana
    Admin
    Yana avatar
    4682 posts

    Posted 21 Dec 2017 Link to this post

    Hi Vitaly,

    Thank you for sending the additional information. Indeed, the workaround I suggested previously will not help in this case.

    I am afraid I cannot offer a suitable solution to this scenario at this stage, again I'd encourage you to follow the items in the Feedback Portal in order to receive notifications when the development team start working on them.

    Let me know if you have any additional questions or concerns.

    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
Back to Top