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.35k stars 569 forks source link

Charts do not scale properly when moving to extended display with different scale on Mac (MAUI) #1523

Open shahadatshakil opened 5 months ago

shahadatshakil commented 5 months ago

Describe the bug Charts render properly on mac default display. But when moving the app window to an extended display with different scaling, it doesn't scale properly.

To Reproduce Steps to reproduce the behavior:

  1. Create a maui app with any simple chart from LiveCharts2
  2. Run the app on Mac
  3. Move app window to an extended display with different scaling
  4. The chart element moves to random position

Expected behavior Charts scale properly on any display.

Desktop (please complete the following information):

Additional context In windows, the rendering works fine on extended display but not in mac.

beto-rodriguez commented 1 month ago

Hi

This is an interesting issue; I am afraid this is hard to test for me and I am not completely sure if the issue is in this library or on the MAUI side, I will keep this open as a reminder to investigate this, there is also a chance that a future version of MAUI fixes this for us.