ChartDirector 6.2 (.NET Edition)
public void setTickDensity(int majorTickSpacing [, int minorTickSpacing ]);
Public Sub setTickDensity(majorTickSpacing As Integer [, minorTickSpacing As Integer ])
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.
|majorTickSpacing||(Mandatory)||Specify the desired distance between two major ticks in pixels.|
|minorTickSpacing||-1||Specify the desired distance between two minor ticks in pixels. -1 means minor ticks are not used.
© 2017 Advanced Software Engineering Limited. All rights reserved.