Back to Devexpress

IntervalDateTimeScaleOptions.UnderflowValue Property

wpf-devexpress-dot-xpf-dot-charts-dot-intervaldatetimescaleoptions.md

latest5.3 KB
Original Source

IntervalDateTimeScaleOptions.UnderflowValue Property

Gets or sets the underflow interval’s end value.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public DateTime? UnderflowValue { get; set; }
vb
Public Property UnderflowValue As Date?

Property Value

TypeDescription
Nullable<DateTime>

The date-time value that specifies the underflow interval’s end value.

|

Example

This example demonstrates how to create a histogram chart based on date-time values.

Use the following API members to configure histogram options:

MemberDescription
IntervalDateTimeScaleOptionsStores options for the date-time x-axis whose scale is divided into intervals.
ManualDateTimeScaleOptions.AggregateFunctionGets or sets the function that is used to aggregate date-time axis data when one of the AxisX2D.DateTimeScaleOptions, AxisX3D.DateTimeScaleOptions, or RadarAxisX2D.DateTimeScaleOptions properties is set to ManualDateTimeScaleOptions.
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 underflow interval axis label and crosshair label.
xaml
<dxc:ChartControl x:Name="chartControl" 
                  Width="480" Height="270">
    <dxc:XYDiagram2D>
        <dxc:XYDiagram2D.AxisX>
            <dxc:AxisX2D TickmarksMinorVisible="False" 
                         GridLinesVisible="True">
                <dxc:AxisX2D.DateTimeScaleOptions>
                    <!-- Configure histogram options. -->
                    <dxc:IntervalDateTimeScaleOptions AggregateFunction="Histogram"
                                                      OverflowValue="2019/01/20" 
                                                      UnderflowValue="2019/01/10"                  
                                                      Pattern="{}{A1:MMM dd} - {A2:MMM dd}"
                                                      OverflowValuePattern="After {A1: MMM dd}"
                                                      UnderflowValuePattern="Before {A2: MMM dd}"/>
                    <!--...-->
                </dxc:AxisX2D.DateTimeScaleOptions>
                <dxc:AxisX2D.WholeRange>
                    <dxc:Range SideMarginsValue="0.8" AutoSideMargins="False"/>
                </dxc:AxisX2D.WholeRange>
            </dxc:AxisX2D>
        </dxc:XYDiagram2D.AxisX>
        <dxc:BarSideBySideSeries2D DisplayName="Series" 
                                    DataSource="{Binding}" 
                                    ArgumentDataMember="Date"
                                    ArgumentScaleType="DateTime"
                                    BarWidth="1">
        </dxc:BarSideBySideSeries2D>
    </dxc:XYDiagram2D>
</dxc:ChartControl>

See Also

IntervalDateTimeScaleOptions Class

IntervalDateTimeScaleOptions Members

DevExpress.Xpf.Charts Namespace