beto-rodriguez / LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
https://livecharts.dev
MIT License
4.38k stars 572 forks source link

Updating Series is giving a visual glitch on WinUI #1701

Open notKqi opened 5 days ago

notKqi commented 5 days ago

Describe the bug I am currently using the LiveCharts 2 with WinUI and a Cartesian Chart (specifically race looking bars) User can choose what data to show on the chart and the bar are shown based on the choice.

The issue appears when we try to show the bar back. It's datalabel goes under the bar graphic and sometimes the bar gets stuck on the chart view and in between other data.

To Reproduce Steps to reproduce the behavior:

  1. My chart starts with data shown at the start with a ListView
  2. Select a data to hide with the ListView
  3. Select the data to show back

Expected behavior Datalabel should stay above the bar and the chart auto-resize should not have the data back stuck between two bars

Screenshots Here is the datalabel that went under the bar {9E8C3A57-E322-4477-AAA4-C5162BD75BA4}

Here the bars go on top of each others after multiple chart updates {F6A4D5EB-79E5-46F5-908A-83E38DA1922C}

Desktop (please complete the following information):