Skip to main content
A newer version of this page is available. .

TdxChartAxisAlignment Enum

Enumerates available axis positions in relation to the area of an XY diagram.

Declaration

TdxChartAxisAlignment = (
    Near,
    Far,
    Zero,
    Center
);

Members

Name Description Example (Y-Axis)
Near

An axis is aligned with the border of a diagram that corresponds to the scale beginning on an orthogonal axis.

The Near axis position depends on the following:

  • The axis position. For example, if the axis is horizontal with all other default settings, Near matches the bottom diagram border.
  • Direction of the orthogonal axis. If its scale is reversed, Near and Far positions swap places.
  • The Chart control’s BiDiMode property value (only for vertical axes). For example, if this property is set to bdRightToLeft, Near and Far positions swap places.

VCL Chart Control: The Axis of Values in the Near Position at the Left Diagram Border

Far

An axis is aligned with the border of a diagram that corresponds to the scale end of an orthogonal axis.

The Far axis position depends on the following:

  • The axis position. For example, if the axis is horizontal with all other default settings, Far matches the top diagram border.
  • Direction of the orthogonal axis. If its scale is reversed, Far and Near positions swap places.
  • The Chart control’s BiDiMode property value (only for vertical axes). For example, if this property is set to bdRightToLeft, Far and Near positions swap places.

VCL Chart Control: The Axis of Values in the Far Position at the Right Diagram Border

Zero

An axis is aligned with the position of the zero value on the scale of an orthogonal axis. This mode is useful when the scale on the orthogonal axis displays both positive and negative numeric values.

VCL Chart Control: The Axis of Values is Aligned with the Zero Value Position

Center

An axis is centered within the area of an XY diagram.

VCL Chart Control: The Axis of Values is Centered within the Diagram Area

Remarks

The TdxChartCustomAxis.Alignment property references the TdxChartAxisAlignment type.

Note

TdxChartAxisAlignment is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxChartAxisAlignment.Zero (in Delphi) or TdxChartAxisAlignment::Zero (in C++Builder) to refer to the Zero value in code.

See Also