Back to Devexpress

DateTimeAxisX.LabelFormatAutoReplaceOptions Property

maui-devexpress-dot-maui-dot-charts-dot-datetimeaxisx-65e9e2e8.md

latest1.8 KB
Original Source

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. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public AxisLabelFormatAutoReplaceOptions LabelFormatAutoReplaceOptions { get; set; }

Property Value

TypeDescription
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:

xml
<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

DateTimeAxisX Class

DateTimeAxisX Members

DevExpress.Maui.Charts Namespace