Applies to

grAxis objects in Graph controls


The MaximumValue property specifies the maximum value for an axis when the axis datatype is numeric. This property is not used if the Autoscale property is enabled.


In a painter

To set the maximum value of an axis with a numeric datatype:

  1. Display the Axis tab page of the graph's Properties view and select the desired axis from the Axis drop-down list.

  2. Make sure that the Autoscale check box is not checked.

  3. Select adtDouble! from the DataType drop-down list.

  4. Specify the desired maximum numeric value in the MaximumValue field.

    This value should be larger than the maximum data value being graphed.

In scripts

The MaximumValue property takes a double value.

The following line sets a maximum value for an Axis with a datatype of double.

gr_1.Values.DataType = AdtDouble!
gr_1.Values.MaximumValue = 500000.00