DxChartAxisTitle.HorizontalAlignment Property

Specifies the horizontal alignment for the axis title.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

Type Description
HorizontalAlignment

The horizontal alignment.

Available values:

Name Description
Center

Aligns the items or text to the center.

Left

Aligns the items or text to the left.

Right

Aligns the items or text to the right.

Remarks

The following code centers an axis title:

<DxChart Data="@WeatherForecasts">
    ...
    <DxChartArgumentAxis>
        <DxChartAxisTitle Text="Date" HorizontalAlignment="HorizontalAlignment.Center"/>
    </DxChartArgumentAxis>
</DxChart>
See Also