Back to Devexpress

IntervalTimeSpanScaleOptions.UnderflowValuePattern Property

wpf-devexpress-dot-xpf-dot-charts-dot-intervaltimespanscaleoptions-c5cc6cbe.md

latest4.7 KB
Original Source

IntervalTimeSpanScaleOptions.UnderflowValuePattern Property

Gets or sets a format string that configures text for the overflow interval axis label and crosshair label.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public string UnderflowValuePattern { get; set; }
vb
Public Property UnderflowValuePattern As String

Property Value

TypeDescription
String

A format string.

|

Remarks

Patterns can contain regular text (displayed as is) and value placeholders in braces. You can apply Format Specifiers to placeholder values. Use a colon to separate a placeholder and its format specifier.

The following table contains the available placeholders:

PlaceholderDescription
{OB}Displays an opening bracket.
{CB}Displays a closing bracket.
{OS}Displays the greater than sign.
{US}Displays the less than or less than or equal to sign.
{A1}Displays the interval start value.
{A2}Displays the interval end value.

Example

This example shows how to display intervals on the x-axis:

The example uses the following API members:

MemberDescription
IntervalTimeSpanScaleOptionsStores options for the time-span x-axis whose scale is divided into intervals.
ManualTimeSpanScaleOptions.AggregateFunctionGets or sets the function that is used to aggregate time-span data associated with the axis.
OverflowValueGets or sets the overflow interval’s start value.
UnderflowValueGets or sets the underflow interval’s end value.
PatternGets or sets a format string that configures text for the axis label and crosshair label.
OverflowValuePatternGets or sets a format string that configures text for the overflow interval axis label and crosshair label.
UnderflowValuePatternGets or sets a format string that configures text for the overflow interval axis label and crosshair label.
xaml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>
        <dxc:AxisX2D.TimeSpanScaleOptions>
            <dxc:IntervalTimeSpanScaleOptions AggregateFunction="Average" 
                                              Pattern="{}{A1:dd\.hh\:mm}-{A2:dd\.hh\:mm}" 
                                              UnderflowValue="0.06:00:00" 
                                              UnderflowValuePattern="{}{US}{A2:hh\:mm}"
                                              OverflowValue="1.12:00:00" 
                                              OverflowValuePattern="{}{OS}{A1:dd\.hh\:mm\:ss}"/>
        </dxc:AxisX2D.TimeSpanScaleOptions>                        
    </dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>

See Also

IntervalTimeSpanScaleOptions Class

IntervalTimeSpanScaleOptions Members

DevExpress.Xpf.Charts Namespace