TCustomAxisPanel.MaxXValue
TCustomAxisPanel
function MaxXValue(Const AAxis: TChartAxis): TAxisValue;
Unit
TeEngine
Description
This function returns the calculated Maximum Horizontal value for the specified AAxis. AAxis can be TopAxis or BottomAxis or a Horizontal Custom Axis.
The calculation returns the value of the Maximum value of eligible Series X Values. Only Series with the TChartSeries.HorizAxis equal to AAxis will be considered.
Example
Chart1.BottomAxis.Automatic := False ;
Chart1.BottomAxis.Maximum := Chart1.MaxXValue( Chart1.BottomAxis ) ;