AxisTitle.Alignment Property
Gets or sets the axis title alignment.
Namespace: DevExpress.XamarinForms.Charts
Assembly: DevExpress.XamarinForms.Charts.dll
NuGet Package: DevExpress.XamarinForms.Charts
Declaration
public AxisTitleAlignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
AxisTitleAlignment | 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. |
Remarks
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 |
Example
This example demonstrates how to create 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>