I am using the oxyplot lib to create timeseries Charts. I am trying to create a plot which has the same y-axis on both sides, it works fine as long as I am not interacting with the plot to zoom or pan, here is my code
model.Axes.Add(new LinearAxis()
{
MajorStep = 0.1,
Minimum = 0,
Maximum = 1,
Position = AxisPosition.Left,
Title = "Title Axis",
AxisTitleDistance = 10
});
model.Axes.Add(new LinearAxis()
{
Key = "RightYAxis"
MajorStep = 0.1,
Minimum = 0,
Maximum = 1,
Position = AxisPosition.Right
});
DateTimeAxis dta = new DateTimeAxis()
{
Key = "DateTimeAxis",
IntervalType = SetDateTimeIntervalType(minDate, maxDate),
StringFormat = "dd/MM/yyyy",
Position = AxisPosition.Bottom,
Minimum = DateTimeAxis.ToDouble(minDate),
Maximum = DateTimeAxis.ToDouble(maxDate),
Title = "Date",
AxisTitleDistance = 10
};
dta.AxisChanged += new EventHandler<AxisChangedEventArgs>(AxisChanged);
model.Axes.Add(dta);
When I interact with the plot, only the left y axis and the bottom axis are scaling appropriately. When I add the right y axis before the left y axis, the bottom and right side axis are scaling.
What setting do I need to set, to scale both y axis accordingly and not just one?