Skip to content

AbsoluteMinimum AbsoluteMaximum AreaSeries different behavior on Android and iOS Xamarin Forms #57

Open
@chaselal

Description

@chaselal

Steps to reproduce

Sample solution: https://drive.google.com/file/d/0B8YvbPIswXQ4aklmYU0xaXR1Yjg/view?usp=sharing

The gist is to plot an AreaSeries that has endpoints defined outside of the X-axis's minimum and maximum values. If AbsoluteMinimum and AbsoluteMaximum are set on the X-axis, then the series will be filled on iOS, but not on Android.

  1. Create a plot with a TimeSpanAxis and a LinearAxis. Set Minimum, Maximum, AbsoluteMinimum, and AbsoluteMaximum value on the TimeSpanAxis and Minimum and Maximum on the LinearAxis.
  2. Add an AreaSeries to the plot. Add two DataPoints to the AreaSeries, one with X less than the TimeSpanAxis's Minimum and one with X greater than the TimeSpanAxis's Maximum. Set Y values on the DataPoints. Set a fill color.
  3. Render the plot in a PlotView.

Platform: Xamarin.Forms Android and iOS
.NET version: 4.5

Expected behaviour

The area series should be filled.

Actual behaviour

The area series is filled on iOS, but not on Android.

Android:
android

iOS:
ios

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions