vcl-dxchartxydiagram-a6ef1795.md
Enumerates available axis positions in relation to the area of an XY diagram.
TdxChartAxisAlignment = (
Near,
Far,
Zero,
Center
);
| 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:
Near matches the bottom diagram border.Near and Far positions swap places.bdRightToLeft, Near and Far positions swap places.|
|
| 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:
Far matches the top diagram border.Far and Near positions swap places.bdRightToLeft, Far and Near positions swap places.|
|
| 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.
|
|
| Center |
An axis is centered within the area of an XY diagram.
|
|
You can position main X and Y-axes at one of the borders of an XY diagram or within its plot area.
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.
The TdxChartCustomAxis.Alignment property references the TdxChartAxisAlignment type.
See Also