oxyplot / documentation-examples

examples used in the documentation
MIT License
43 stars 145 forks source link

Xamarin Forms iOS not showing anything #15

Open bluekuen opened 5 years ago

bluekuen commented 5 years ago

Hello,

i have problem getting the plot working on iOS. I have a Xamarin.Forms Project and it's working fine on Android but i can't get it working on iOS. I tried nearly everything and i'm really out of ideas at the moment.

I have the newest Xamarin Version (I tried it with the one before though), and the newest Oxyplot Version 1.0.0. The Device is an iPhone 6s with iOS 12.2.

It's just a simple Plotmodel with two Axes where i add a few Points to my LineSeries.


Model = new PlotModel {
                LegendPlacement = LegendPlacement.Outside,
                LegendPosition = LegendPosition.BottomCenter,
                LegendOrientation = LegendOrientation.Horizontal
            };

            Model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Key = "left" });
            Model.Axes.Add(new DateTimeAxis { Position = AxisPosition.Bottom, Title = "Time" });
 var series = new LineSeries()
                        {
                            Tag = "1408",
                            MarkerType = MarkerType.Circle,
                            Title = (string)"Test"
                        };
                        Model?.Series?.Add(series);
series.Points.Add(new DataPoint(DateTimeAxis.ToDouble(DateTime.Now), 12));
                            }

Please any help is appreaciated. Very good plugin by the way, really great work!