Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin Forms iOS not showing anything #15

Open
bluekuen opened this issue May 16, 2019 · 0 comments
Open

Xamarin Forms iOS not showing anything #15

bluekuen opened this issue May 16, 2019 · 0 comments

Comments

@bluekuen
Copy link

bluekuen commented May 16, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant