0

Each time I add new data to series, Y axis is panning/zooming automatically in order to fit new data into screen. How can I prevent Oxyplot from touching the axis? I would like to have the scale fixed all the time, no matter what data I feed to plot

Pablo
  • 28,133
  • 34
  • 125
  • 215
  • I do not know oxyplot; in a ms chart you would set the axis range i.e. axis.minimum & maximum – TaW Jun 12 '16 at 21:46

1 Answers1

0

As @Taw stated, the properties in oxyplot are the same:

plotModel.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Left,
    Minimum = 0,
    Maximum = 10,
});

plotModel.Axes.Add(new LinearAxis()
{
    Position = AxisPosition.Bottom,
    Minimum = 0,
    Maximum = 10,
});
Jose
  • 1,857
  • 1
  • 16
  • 34