X1MajorGridStep

This property can be used to control the number of major grid lines or steps that will be imaged on the X-axis of the graph. For example, grid steps 1, 6, 11, 16, ...51 will be imaged if the range of values in the graph is 1...51 and this property is set to 5. If this property is set to 10, grid steps 1, 11, 21, 31...51 would appear. Assigning a value to this property will automatically set the X1MajorGridStepAuto property to false.

Syntax:

setX1MajorGridStep(value); 
value = getX1MajorGridStep();

where:

value

Is any positive value. This value is a Java double-precision number. 15.0 is the default value.

Example:

setX1MajorGridStep(5.0);
setGraphType(61); 
setX1MajorGridStepAuto(false);

scatter graph

setX1MajorGridStep(20.0);

scatter graph

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

See X1MajorGridStepAuto, X1MinorGridStep, X1MinorGridStepAuto, getGridStep(), setGridStep(), getGridStepAuto(), setGridStepAuto().


WebFOCUS