Skip to main content
All docs
V24.1

TdxChartSecondaryAxisX Class

A secondary axis of arguments.

Declaration

TdxChartSecondaryAxisX = class(
    TdxChartCustomAxisX
)

Remarks

A secondary axis of arguments allows you to complement the main axis of arguments (X-axis) with a different scale. For example, secondary axes can be useful if you need to display multiple measurement units simultaneously.

Note

The TdxChartSecondaryAxisX class implements secondary X-axis functionality for the Chart control. To maintain an X-axis collection, the control uses the TdxChartSecondaryAxisXCollectionItem class as a wrapper for a TdxChartSecondaryAxisX object.

Main API Members

The list below outlines key members of the TdxChartSecondaryAxisX class that allow you to configure an axis of arguments.

General

Assign
Copies compatible settings between chart axes.
Diagram
Provides access to the XY diagram to which the axis belongs.
Visible
Hides or displays the axis.

Appearance and Behavior

Alignment
Specifies the position of the secondary axis of arguments in relation to the orthogonal axis scale.
Appearance
Allows you to customize general appearance settings.
CrosshairLabels
Provides access to crosshair axis label settings.
MinorCount
Specifies the number of minor tick marks.
Ticks
Provides access to major and minor axis tick appearance settings.
Title
Specifies a title for the axis and changes title appearance and position.
ValueLabels

Allows you to display and customize axis value labels.

Tip

You can handle the parent diagram‘s OnGetAxisValueLabelDrawParameters event to customize individual axis value labels.

Gridlines
Allows you to display and customize axis grid lines in the parent diagram.
Interlaced
Applies interlacing to the parent diagram.
Logarithmic | LogarithmicBase
Allow you to enable a logarithmic scale for the numeric axis and adjust the scale’s logarithmic base.
NumericScaleOptions | Range
Adjust the numeric value range of the axis.
OnCompareValues
Allows you to implement a custom sorting algorithm for series points.
Reverse
Specifies if the axis direction is reversed.

Axis Deletion

To delete an individual secondary axis of arguments, release the corresponding wrapper object (a TdxChartSecondaryAxisXCollectionItem class instance) directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).

Important

Do not release a TdxChartSecondaryAxisX object in code. Otherwise, an error can occur.

Direct TdxChartSecondaryAxisX Class Reference

The TdxChartSecondaryAxisCollectionItem.Axis property references a TdxChartSecondaryAxisX object.

Indirect TdxChartSecondaryAxisX Class Reference

The Chart control’s HitTest.Axis property references the TdxChartSecondaryAxisX class as a TdxChartCustomAxis object if the HitTest.HitCode property returns the TdxChartHitCode and the inspected point is within a secondary axis of arguments.

See Also