Skip to main content

ContinuousNumericScaleOptions.GridSpacing Property

Gets or sets the numeric grid step in grid alignment units.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public double GridSpacing { get; set; }

Property Value

Type Description
Double

A Double value which specifies the numeric grid step.

Property Paths

You can access this nested property as listed below:

Object Type Path to GridSpacing
AxisY2D
.NumericScaleOptions .GridSpacing
AxisY3D
.NumericScaleOptions .GridSpacing
CircularAxisY2D
.NumericScaleOptions .GridSpacing
ZAxis3D
.NumericScaleOptions .GridSpacing

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 ContinuousNumericScaleOptions.AutoGrid to false, and specify the GridSpacing property value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridSpacing property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also