oxyplot-xamarin icon indicating copy to clipboard operation
oxyplot-xamarin copied to clipboard

AreaSeries disapears when zomming in

Open Enigma86d opened this issue 4 years ago • 1 comments
trafficstars

Steps to reproduce

  1. Create a Xamarin forms project targeting at least UWP.
  2. Create a PlotModel and an AreaSeries with a fill color and add certain points
  3. Add the AreaSeries to the PlotModel and run the app in Windows.

Details: Visual Studio 2019 Version 16.5.1 .NET standard 2.0 (I was not able to make it run using 2.1) Nuget: Xamarin.Forms v5.0.0.2012 (latest) Xamarin.Essentials v1.6.1 OxyPlot.Xamarin.Forms v1.1.0-unstable0011 (tried 1.0.0 as ell) NETStandard.Library v2.0.3 Microsoft.NETCore.UniversalWindowsPlatform v6.2.12

Expected behavior: the area series should remain visible if zooming into it (the fill color should remain on the screen

Actual behavior: the fill color disappears from the screen Print screens show expected behavior if drawing a square. However, if drawing an odd shape, the fill color disappears after zooming in.

A few things which I am not sure about and don't know if could be related to the issue. As soon as I add OxyPlot to a new Xamarin Forms project I get a few warnings like the below one and I don't know how to resolve them and if they are a concern: Severity Code Description Project File Line Suppression State Warning NU1701 Package 'OxyPlot.Xamarin.Forms 1.1.0-unstable0011' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. OxyPlotTest C:\Users\Marius\Desktop\OxyPlotTest\OxyPlotTest\OxyPlotTest.csproj 1 Trying .NET standard 1.6 or 2.1 brings compatibility errors.

square square_with_zoom_OK custom_shape custom_shape_with_zoom_NOK OxyPlotTest.zip

Enigma86d avatar Mar 12 '21 15:03 Enigma86d

This issue appears on Android as well (not just UWP). It's there any fix/workaround for this? Thanks

Enigma86d avatar Sep 25 '23 08:09 Enigma86d