Scaling Both Independent Axes

To scale both independent axes you should link the scale and value properties of both axes using the PropertyChanged event like the following:

 

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

     }

   };


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.