Skip to main content

DateTimeAxisX.LabelFormatAutoReplaceOptions Property

Gets or sets whether the date-time axis detects if adjacent argument values belong to different time intervals (for example, days of different months) and automatically displays a transition label (for example, the first-day label of the next month) with a different format.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public AxisLabelFormatAutoReplaceOptions LabelFormatAutoReplaceOptions { get; set; }

Property Value

Type Description
AxisLabelFormatAutoReplaceOptions

An object that stores axis label formats for arguments of different measurement units.

Example

The following example configures a date-time axis so that it automatically shows when the next month starts:

Axis Label Format Auto Replace

<dxc:DateTimeAxisX x:Name="xAxis" GridAlignment="Day" GridSpacing="5">
    <dxc:DateTimeAxisX.LabelFormatAutoReplaceOptions>
        <dxc:AxisLabelFormatAutoReplaceOptions>
            <dxc:DateTimeLabelFormat MeasureUnit="Day" Format="d"/>
            <dxc:DateTimeLabelFormat MeasureUnit="Month" Format="MMM, d"/>
        </dxc:AxisLabelFormatAutoReplaceOptions>
    </dxc:DateTimeAxisX.LabelFormatAutoReplaceOptions>
</dxc:DateTimeAxisX>
See Also