Skip to main content

ManualNumericScaleOptions.GridSpacing Property

Gets or sets the numeric 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 numeric 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 ManualNumericScaleOptions.AutoGrid to false, and specify the GridSpacing property value.

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

ManualNumericScaleOptions.GridSpacing = 1 ManualNumericScaleOptions.GridSpacing = 2
ManualNumeric_GridSpacing_1 ManualNumeric_GridSpacing_2
See Also