maui-devexpress-dot-maui-dot-charts-dot-axistitle.md
Gets or sets the alignment of the axis title relative to the axis. This is a bindable property.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public AxisTitleAlignment Alignment { get; set; }
| Type | Default | Description |
|---|---|---|
| AxisTitleAlignment | Center |
An AxisTitleAlignment enumeration value that specifies how to align the axis title.
|
Available values:
| Name | Description |
|---|---|
| Center |
The title is aligned to the center of the axis.
| | Far |
The title is aligned far from the beginning of the axis.
| | Near |
The title is aligned near the beginning of the axis.
| | Outside |
The title is located outside axis bounds.
|
Use the Alignment property to specify the alignment of the axis title relative to the axis.
|
Property Value
|
Axis Title Alignment
| | --- | --- | |
Outside
|
| |
Near
|
| |
Center
|
| |
Far
|
|
This example creates a y-axis’s title, align it and customize its appearance.
<dxc:ChartView.AxisY>
<dxc:NumericAxisY>
<dxc:NumericAxisY.Title>
<dxc:AxisTitle Text="$/gallon"
Alignment="Outside">
<dxc:AxisTitle.Style>
<dxc:TitleStyle>
<dxc:TitleStyle.TextStyle>
<dxc:TextStyle Color="DarkRed" Size="24"/>
</dxc:TitleStyle.TextStyle>
</dxc:TitleStyle>
</dxc:AxisTitle.Style>
</dxc:AxisTitle>
</dxc:NumericAxisY.Title>
</dxc:NumericAxisY>
</dxc:ChartView.AxisY>
See Also