Chart for WPF and Silverlight / Chart Features / Axis / Multiple Axis / Scaling Multiple Axis
In This Topic
Scaling Multiple Axis
In This Topic

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;
     }
   };

 

See Also