MajorDivisions

Applies to

grAxis objects in Graph controls

Description

The MajorDivisions property specifies the number of divisions or ticks on the axis, not counting the origin point.

The default value of 0 means the graph uses a MajorDivision value optimized for the data and suppresses MinorDivision ticks.

Usage

In a painter

To specify the number of major divisions on an axis:

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

  2. Use the spin control in the MajorDivisions field of the Major Divisions group to specify the desired number of divisions.

In scripts

The MajorDivisions property takes an integer specifying the number of major divisions on an axis.

The following example sets 10 ticks on the major grid of the Values axis of a graph.

gr_1.Values.MajorDivisions = 10