Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

QualitativeScaleOptions.GridSpacing Property

Gets or sets the interval between grid lines and major tickmarks.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public double GridSpacing { get; set; }

#Property Value

Type Description
Double

The interval between grid lines and major tickmarks.

#Property Paths

You can access this nested property as listed below:

Object Type Path to GridSpacing
ArgumentAxis3D
.QualitativeScaleOptions .GridSpacing
AxisX2D
.QualitativeScaleOptions .GridSpacing
AxisX3D
.QualitativeScaleOptions .GridSpacing
RadarAxisX2D
.QualitativeScaleOptions .GridSpacing

#Remarks

By default, the QualitativeScaleOptions.AutoGrid is true, and the GridSpacing is set automatically. If you want to change the grid spacing, QualitativeScaleOptions.AutoGrid should be set to false first.

The following images demonstrate how the GridSpacing property works.

GridSpacing = 3; GridSpacing = 4;
QualitativeScaleOptions-GridSpacing_3 QualitativeScaleOptions-GridSpacing_4
See Also