Axis.GridSpacing Property
OBSOLETE
The Axis.GridSpacing property is now obsolete. Use the Axis.ContinuousNumericScaleOptions.GridSpacing, AxisX.ManualNumericScaleOptions.GridSpacing, Axis.ContinuousDateTimeScaleOptions.GridSpacing, or AxisX.ManualDateTimeScaleOptions.GridSpacing property instead.
Gets or sets a numeric interval between the axis’ grid lines.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
[Obsolete("The Axis.GridSpacing property is now obsolete. Use the Axis.ContinuousNumericScaleOptions.GridSpacing, AxisX.ManualNumericScaleOptions.GridSpacing, Axis.ContinuousDateTimeScaleOptions.GridSpacing, or AxisX.ManualDateTimeScaleOptions.GridSpacing property instead.")]
[Browsable(false)]
public double GridSpacing { get; set; }
Property Value
Type | Description |
---|---|
Double | A Double value which specifies the interval between grid lines. |
Remarks
This feature manages label placement along the axis.
By default, the GridSpacing is not set, so the interval between axis labels is calculated automatically. To change the step interval for axis labeling, specify the interval between labels by the GridSpacing property value.
Related GitHub Examples
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.