Skip to main content

ManualDateTimeScaleOptions.GridSpacing Property

Gets or sets the date-time grid step in grid alignment units.

Namespace: DevExpress.Xpf.Charts

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

#Declaration

[XtraSerializableProperty]
public double GridSpacing { get; set; }

#Property Value

Type Description
Double

A Double value which specifies the date-time grid step.

#Remarks

This feature manages label placement along the axis.

By default, the GridSpacing is set to the default value, so the grid step is calculated automatically. To change the grid step interval for axis labeling, set the ManualDateTimeScaleOptions.AutoGrid to false, and specify the GridSpacing property value.

The table below shows the GridSpacing property in action for random data.

ManualDateTimeScaleOptions.GridSpacing = 2 ManualDateTimeScaleOptions.GridSpacing = 4
ManualDateTime_GridSpacing_2 ManualDateTime_GridSpacing_4
See Also