HasAutoMaximum Property Example

This example sets the maximum scale value for the specified axis if the maximum value is currently set to be determined automatically.

Set c = ChartSpace1.Constants
Set axisScale = ChartSpace1.Charts(0).Axes(c.chAxisPositionLeft).Scaling
If axisScale.HasAutoMaximum Then axisScale.Maximum = 50000