Oxyplot zoom not work

Hi all,

I'm coming to u because i have problem with oxyplot librairies.
I make a blank application and i just put plot view with this code:

`PlotView plotview = new PlotView
{
VerticalOptions = LayoutOptions.Fill,
HorizontalOptions = LayoutOptions.Fill,
};

        var model = new PlotModel { Title = "Hello, Forms!" };
        plotview.HorizontalOptions = LayoutOptions.Fill;
        plotview.VerticalOptions = LayoutOptions.Fill;
        var BottomAxis = new DateTimeAxis();
        BottomAxis.Position = AxisPosition.Bottom;

        var LeftAxis = new LinearAxis();
        LeftAxis.Position = AxisPosition.Left;
        LeftAxis.Minimum = -50d;
        LeftAxis.Maximum = 50d;
        LeftAxis.IntervalLength = 20d;
        LeftAxis.AxislineThickness = 40d;
        LeftAxis.MajorGridlineStyle = LineStyle.Solid;
        LeftAxis.AxislineColor = OxyColors.Aqua;
        model.Axes.Add(LeftAxis);
        model.Axes.Add(BottomAxis);

        model.ZoomAllAxes(23d);
        plotview.Model = model;

        Content = plotview;`

But zoom not work, what i did wrong?

Thanks in advance

Sign In or Register to comment.