Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI CartesianChart does not update after leaving page and returning #1291

Closed
christiaanderidder opened this issue Oct 2, 2023 · 2 comments
Labels
bug Something isn't working priority 0 needs to be fixed asap.
Milestone

Comments

@christiaanderidder
Copy link
Contributor

christiaanderidder commented Oct 2, 2023

Describe the bug
When using MAUI AppShell with a CartesianChart on one Page, navigating to another page and coming back, causes the chart to malfunction and not update any more.

To Reproduce
Steps to reproduce the behavior:

  1. Check out https://github.com/christiaanderidder/livechartscore-not-updating
  2. Open application
  3. Click on refresh to load new random data into the chart and verify it redraws
  4. Navigate to second tab 'Other'
  5. Navigate back to tab 'Chart'
  6. Click on refresh to load new random data into the chart and verify it does not redraw

Expected behavior
The chart should redraw after the view is loaded again

Screenshots
https://gifyu.com/image/S6bCd

Smartphone (please complete the following information):

  • Device: Android Emulator
  • OS: API 34

Additional context
I have dug into the code and it seems to be caused by the following commit: 3e678a4 which stops the chart from updating after the view unloads. However, it does not activate the chart again after reloading.

The following change resolves the problem, but I am not familiar enough with the code to know whether this can cause other side-effects: #1292

@mgramley
Copy link

mgramley commented Oct 6, 2023

Is there any update on this? Looks like there is a PR out for the fix but it's not live yet?

I'm having this problem as well, navigating away from the page with the chart seems to break the chart. I only see this on iOS though.

This is a breaking bug for me, really kills my app to have my chart just stop working. Haven't found a work around yet.

@christiaanderidder
Copy link
Contributor Author

@mgramley It looks like my PR was merged, so I would assume it will be fixed in an upcoming release.

@beto-rodriguez beto-rodriguez added bug Something isn't working priority 0 needs to be fixed asap. labels Oct 28, 2023
@beto-rodriguez beto-rodriguez modified the milestones: v2.1, rc-2 Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority 0 needs to be fixed asap.
Projects
None yet
Development

No branches or pull requests

3 participants