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

Chart labels not being removed off-screen in Avalonia #1334

Closed
hahagu opened this issue Oct 27, 2023 · 1 comment
Closed

Chart labels not being removed off-screen in Avalonia #1334

hahagu opened this issue Oct 27, 2023 · 1 comment
Labels
bug Something isn't working has workaround priority 0 needs to be fixed asap.
Milestone

Comments

@hahagu
Copy link

hahagu commented Oct 27, 2023

Describe the bug
The chart labels are not being removed off-screen in Avalonia

To Reproduce
Steps to reproduce the behavior:

  1. Use CartesianChart controls in an ItemsRepeater control wrapped in ScrollViewer
  2. Scroll down until some CartesianChart controls are off the screen
  3. Scroll back up
  4. Labels from the previous draw still persists

Expected behavior
Labels should not persist, but should be removed from the display.

Screenshots

MRE.mp4

Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • LiveCharts2 Version: 2.0.0-rc1.2

Additional context
Minimal reproducible example:
https://github.com/hahagu/LiveCharts2.ItemsRepeaterMRE

@hahagu
Copy link
Author

hahagu commented Oct 27, 2023

Upon some testing with the minimal reproducible example, I've come up with a workaround.
I don't understand why this works, but hopefully, this will help with the debugging.
https://github.com/hahagu/LiveCharts2.ItemsRepeaterMRE/tree/workaround

@beto-rodriguez beto-rodriguez added bug Something isn't working has workaround priority 1 might not be fixed in the next release of the library, but it will soon! priority 0 needs to be fixed asap. and removed priority 1 might not be fixed in the next release of the library, but it will soon! labels Oct 27, 2023
@beto-rodriguez beto-rodriguez added this to the rc-2 milestone Oct 30, 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 has workaround priority 0 needs to be fixed asap.
Projects
None yet
Development

No branches or pull requests

2 participants