oxyplot-xamarin
oxyplot-xamarin copied to clipboard
AbsoluteMinimum AbsoluteMaximum AreaSeries different behavior on Android and iOS Xamarin Forms
trafficstars
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.
- Create a plot with a
TimeSpanAxisand aLinearAxis. SetMinimum,Maximum,AbsoluteMinimum, andAbsoluteMaximumvalue on theTimeSpanAxisandMinimumandMaximumon theLinearAxis. - Add an
AreaSeriesto the plot. Add twoDataPoints to theAreaSeries, one withXless than theTimeSpanAxis'sMinimumand one withXgreater than theTimeSpanAxis'sMaximum. SetYvalues on theDataPoints. Set a fill color. - 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:

iOS:
