To scale both independent axes you should link the scale and value properties of both axes using the PropertyChanged event like the following:
C# |
Copy Code
|
---|---|
// suppose ay2 is auxiliary y-axis ((INotifyPropertyChanged)chart.View.AxisY).PropertyChanged += (s, e) => { if (e.PropertyName == "Scale") { ay2.Scale = chart.View.AxisY.Scale; } else if (e.PropertyName == "Value") { ay2.Value = chart.View.AxisY.Value; } }; |