Skip to content

Xamarin Forms iOS not showing anything #15

Open
@bluekuen

Description

@bluekuen

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!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Xamarin Forms iOS not showing anything · Issue #15 · oxyplot/documentation-examples