Y1MajorGridStepAuto

This property enables or disables automatic calculation of the number of major grid lines on the numeric Y1-axis of a graph.

Syntax:

setY1MajorGridStepAuto(boolean);
boolean = getY1MajorGridStepAuto();

where:

boolean

Can be one of the following:

true automatically calculates the number of major grid steps on the Y1-axis. The value assigned to Y1MajorGridStep is ignored. This value is the default.

false uses the value set by Y1MajorGridStep.

Example:

setDepthRadius(0);
setDepthAngle(0);
setLegendDisplay(false);
setY1MajorGridStep(20.0);  setY1MajorGridStepAuto(false);

bar graph

setY1MajorGridStepAuto(true);

bar graph

Note: If the value assigned to Y1MajorGridStep is negative or results in greater than 50 grid lines, the Y1MajorGridStepAuto property is automatically set to true and the Y1MajorGridStep value is ignored.

See Y1MajorGridStep, Y1MinorGridStepAuto, getGridStep(), getGridStepAuto(), setGridStep(), setGridStepAuto(), getY1MajorGridStepAutoValue().


WebFOCUS