ChartDirector 7.0 (ASP/COM/VB Edition)

Axis.setTickDensity


Usage

setTickDensity(majorTickSpacing [, minorTickSpacing ])

Description

Sets the density of the axis ticks.

Tick density is the desired distance between two ticks in pixels. When ChartDirector performs auto-scaling, it will decide how many ticks to put on the axis based on tick density.

Note that the actual tick density chosen in auto-scaling may not be exactly the same as the desired tick density. It is because ChartDirector may have other constraints in choosing the ticks, such as the ticks and axis range should be neat numbers, and the axis must contain an integral number of ticks, etc. ChartDirector may use a tick distance that is larger than suggested, but never smaller.

Arguments

ArgumentDefaultDescription
majorTickSpacing(Mandatory)Specify the desired distance between two major ticks in pixels.
minorTickSpacing-1Specify the desired distance between two minor ticks in pixels. -1 means minor ticks are not used.

Return Value

None