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

Axis2D.Alignment Property

Specifies the position of an axis relative to another primary axis.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public AxisAlignment Alignment { get; set; }

Property Value

Type Description
AxisAlignment

An AxisAlignment enumeration value which specifies the relative position of the current axis.

Available values:

Name Description
Near

An axis is displayed at the left or bottom side of the diagram, depending on its type and orientation.

Far

An axis is displayed at the right or top side of the diagram, depending on its type and orientation.

Zero

An axis intercepts another primary axis at the zero level.

Note

This alignment type is applicable to primary axes only.

For an axis of (Y) values, the zero level is its zero line.

For an axis of (X) arguments, the zero level depends upon a series’ SeriesBase.ScaleType property value:

- for the ScaleType.Qualitative scale, the zero level is specified by the first point’s argument,

- for the ScaleType.Numerical scale, the zero level equals the zero value,

- for the ScaleType.DateTime scale, the zero level is equal to the earliest date.

Remarks

Refer to the AxisAlignment enumeration’s description for a list of the available axis positions.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Alignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also