Skip to content

AreaSeries disapears when zomming in #113

Description

@Enigma86d

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions