AxisBase.Title Property

Specifies the axis title.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public AxisTitle Title { get; set; }

Property Value

Type Description
AxisTitle

An AxisTitle object that stores axis title settings.

Remarks

The Title property provides access to the chart's axis title settings (text, appearance, alignment and visibility). To create and configure a title for a particular axis, create a AxisTitle object, specify its properties, and assign this object to the axis's Title property.

Examples

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