Back to Devexpress

DateTimeAggregationScaleOptionsBase.SkipRangesWithoutPoints Property

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

latest3.1 KB
Original Source

DateTimeAggregationScaleOptionsBase.SkipRangesWithoutPoints Property

Specifies whether to skip axis ranges that do not have data points.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public bool SkipRangesWithoutPoints { get; set; }
vb
Public Property SkipRangesWithoutPoints As Boolean

Property Value

TypeDescription
Boolean

true, to skip ranges; otherwise, false.

|

Remarks

Use the SkipRangesWithoutPoints option to exclude all date-time axis ranges without data points (date-time periods that correspond to working days are also skipped). If you want to exclude only non-working days, enable the WorkdaysOnly and WorkTimeOnly properties instead. See Work Time and Workday Configuration for more information.

The following images show a chart with different SkipRangesWithoutPoints values:

|

Property Value

|

Example

| | --- | --- | |

SkipRangesWithoutPoints = true

|

| |

SkipRangesWithoutPoints = false (Default)

|

|

Example:

xaml
<dxc:ChartControl x:Name="chart">
    <dxc:XYDiagram2D>
        ...
        <dxc:XYDiagram2D.AxisX>
            <dxc:AxisX2D>
                <dxc:AxisX2D.DateTimeScaleOptions>
                    <dxc:ManualDateTimeScaleOptions SkipRangesWithoutPoints="True"/>
                </dxc:AxisX2D.DateTimeScaleOptions>
            </dxc:AxisX2D>
        </dxc:XYDiagram2D.AxisX>
        ...
    </dxc:XYDiagram2D>
</dxc:ChartControl>

See Also

Work Time and Workday Configuration

Scale Breaks

Whole and Visual Ranges

Empty Points

DateTimeAggregationScaleOptionsBase Class

DateTimeAggregationScaleOptionsBase Members

DevExpress.Xpf.Charts Namespace