Skip to main content

AxisTitle Class

Stores axis title settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public class AxisTitle :
    TitleBase

The following members return AxisTitle objects:

Remarks

The AxisTitle class properties define the common appearance settings of a particular axis’s title:

  • Text - Specifies the axis title text.
  • Style - Provides access to the title text appearance settings (text color and size).
  • Visible - Allows you to show and hide the axis title.
  • Alignment - Specifies the axis title alignment.

To create and configure a chart’s axis title, assign an AxisTitle object with the specified properties to the axis’s Title property.

Example

This example demonstrates how to create a y-axis’s title, align it and customize its appearance.

Axis Style

<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