All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DateTimeScaleOptions.SkipRangesWithoutPoints Property

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public bool SkipRangesWithoutPoints { get; set; }

Property Value

Type Description
Boolean

true to skip ranges without points; otherwise, false.

Property Paths

You can access this nested property as listed below:

Show 24 property paths
Object Type Path to SkipRangesWithoutPoints
Axis
.DateTimeScaleOptions.SkipRangesWithoutPoints
Axis2D
.DateTimeScaleOptions.SkipRangesWithoutPoints
Axis3D
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisBase
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisX3D
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisXBase
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisY
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisY3D
.DateTimeScaleOptions.SkipRangesWithoutPoints
AxisYBase
.DateTimeScaleOptions.SkipRangesWithoutPoints
GanttAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
PolarAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
RadarAxis
.DateTimeScaleOptions.SkipRangesWithoutPoints
RadarAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
RadarAxisY
.DateTimeScaleOptions.SkipRangesWithoutPoints
SecondaryAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
SecondaryAxisY
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramAxis
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramAxisXBase
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramAxisY
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramAxisYBase
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramSecondaryAxisX
.DateTimeScaleOptions.SkipRangesWithoutPoints
SwiftPlotDiagramSecondaryAxisY
.DateTimeScaleOptions.SkipRangesWithoutPoints

Remarks

Use the SkipRangesWithoutPoints option to exclude all date-time axis ranges without data points. If your goal is to display work days/time only, enable the WorkdaysOnly and WorkTimeOnly properties instead. See the following topic for more information: Work Time and Workday Configuration.

The following images show a chart with different SkipRangesWithoutPoints values:

Property Value

Example

SkipRangesWithoutPoints = true

chart-control/skip-ranges-without-points-true

SkipRangesWithoutPoints = false (Default)

chart-control/skip-ranges-without-points-false

Example:

XYDiagram diagram = chartControl1.Diagram as XYDiagram;
diagram.AxisX.DateTimeScaleOptions.SkipRangesWithoutPoints = true;

The following example demonstrates how you can exclude weekends and holidays from the X-axis range:

View Example: Charts - How to exclude weekends and holidays from the axis range

See Also