Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V20.1
  • DateTimeScaleOptions.SkipRangesWithoutPoints Property

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

    Namespace: DevExpress.XtraCharts

    Assembly: DevExpress.XtraCharts.v20.1.dll

    NuGet Packages: DevExpress.Charts, DevExpress.WindowsDesktop.Charts

    Declaration

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

    Property Value

    Type Description
    Boolean

    true, to skip ranges; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to SkipRangesWithoutPoints
    AxisBase
    .DateTimeScaleOptions .SkipRangesWithoutPoints

    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:

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