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