Skip to main content

TdxChartAxisTicks Class

Stores appearance settings of axis tick marks.

Declaration

TdxChartAxisTicks = class(
    TcxLockablePersistent
)

Remarks

Tick marks divide an axis into even sections and help users compare series points on an XY diagram. The TdxChartAxisTicks class implements tick mark appearance settings.

VCL Chart Control: Major and Minor Tick Marks on the Y Axis

Main API Members

The list below outlines key class members that allow you to customize tick mark appearance.

Appearance Settings

LabelAlignment
Positions value labels along their axis.
CrossKind | MinorCrossKind
Specify how major and minor tick marks are displayed along their axis.
Thickness | MinorThickness
Allow you to adjust thickness of major and minor tick marks.
Length | MinorLength
Specify major and minor tick mark lengths.

General-Purpose API Members

Visible | MinorVisible
Hide or display major and minor tick marks on an axis.
BeginUpdate | EndUpdate | CancelUpdate
Allow you to avoid excessive redraw operations during batch tick mark appearance changes.
Assign
Copies tick mark appearance settings between axes.

Numeric Settings and Scaling

All numeric properties of the TdxChartAxisTicks class specify tick mark dimensions in pixels at 96 DPI. The Chart control’s draw routines multiply the following property values by the current scale factor to calculate tick mark dimensions on the target screen:

Length
Specifies length of major tick marks on an axis, in pixels.
MinorLength
Specifies length of minor tick marks on an axis, in pixels.
MinorThickness
Specifies thickness of minor tick marks on an axis, in pixels.
Thickness
Specifies thickness of major tick marks on an axis, in pixels.

Direct TdxChartAxisTicks Class References

The TdxChartCustomAxis.Ticks property references a TdxChartAxisTicks object.

See Also