Y2MajorGridStepAuto

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

Syntax:

setY2MajorGridStepAuto(boolean);
boolean = getY2MajorGridStepAuto();

where:

boolean

Can be one of the following:

true automatically calculates the number of major grid steps on the Y2-axis. The value assigned to Y2MajorGridStep is ignored.

false uses the value set by Y2MajorGridStep. This value is the default.

Example:

setDepthAngle(0);
setDepthRadius(0);
setLegendDisplay(false);
setGraphType(21); 
setY2MajorGridStep(10.0);  setY2MajorGridStepAuto(false);

bi-polar bar graph

setY2MajorGridStepAuto(true);

bi-polar bar graph

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

See Y2MajorGridStep, Y2MinorGridStep, Y2MinorGridStepAuto, getGridStep(), getGridStepAuto(), setGridStep(), setGridStepAuto().


WebFOCUS