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

AutoUpdate of DateTimePoint Series through 'null' causes full series re-draw (Avalonia) #1087

Closed
houstonhaynes opened this issue Jun 27, 2023 · 3 comments
Labels
bug Something isn't working priority 1 might not be fixed in the next release of the library, but it will soon!

Comments

@houstonhaynes
Copy link

houstonhaynes commented Jun 27, 2023

Describe the bug
When the line series ObservableCollection<DateTimePoint> updates with a 'null' value at the first position RemoveAt(0) the chart performs a full redraw of the series.

To Reproduce
Steps to reproduce the behavior:

  1. Build/run my AvaloniaExample app https://github.com/houstonhaynes/Elmish.Avalonia/tree/main/src/Samples/AvaloniaExample
  2. Click on AutoUpdate (null values are inserted 5% of the time)
  3. Observe the "gap" reaching the left edge of the display area of the chart
  4. Note that when the last value before the gap is removed that the full series re-draws in the chart

Expected behavior
The chart should continue to "slide left" smoothly without a full redraw of the series.
Along those lines, the series should visually "hold" the position for the null value so that "slide" increment remains a consistent cadence.

Screenshots
See attached video

Screen.Recording.2023-06-27.at.11.23.15.AM.mov

Desktop (please complete the following information):

  • OS: MacOS M1
  • Browser: N/A
  • Version 2.0.0-beta.801

Additional context
LiveCharts is AMAZING! 😺 👍

@beto-rodriguez beto-rodriguez added bug Something isn't working priority 1 might not be fixed in the next release of the library, but it will soon! labels Jul 11, 2023
@beto-rodriguez
Copy link
Owner

beto-rodriguez commented Jul 30, 2023

Th referenced commit fixes this issue, but the algorithm needs a review, this issue is still present when we insert a null instance. As a temporal solution this seems ok, but we can improve this.

@beto-rodriguez
Copy link
Owner

v

@houstonhaynes
Copy link
Author

This is so great - everythig at this level feels like an interim step. 👍

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 1 might not be fixed in the next release of the library, but it will soon!
Projects
None yet
Development

No branches or pull requests

2 participants