TChartAxis.MasterAxis
TChartAxis
property MasterAxis: TChartAxis;
Unit
TeEngine
Description
Internal property. The current behaviour might change in future versions.
When an axis has the MasterAxis property set to another axis, when the other axis changes its minimum or maximum values (due to zoom or scroll), our axis gets the same minimum and maximum values.
MasterAxis property can be used to synchronize axes scales automatically without having to do this by code:
Old:
Chart1.CustomAxes[3].SetMinMax( Chart1.Axes.Left.Minimum, Chart1.Axes.Left.Maximum );
New:
Chart1.CustomAxes[3].MasterAxis := Chart1.Axes.Left;