# Grid Lines

## Content



Grid lines are lines that appear perpendicular with major/minor tick marks at unit major/minor intervals. Grid lines can help improve the readability of the Chart when you are looking for exact values.

**To paint or fill the major/minor grid lines**

You can apply a color to major/minor grid lines using the [MajorGridStroke](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorGridStroke.html)/[MinorGridStrok](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MinorGridStroke.html)e properties. A fill color can be applied in between each value of the major grid lines using the [MajorGridFill](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorGridFill.html) properties.

**To set the dash pattern for major/minor grid lines**

You can set the dash pattern for major/minor grind lines using the [MajorGridStrokeDashes](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorGridStrokeDashes.html)/[MinorGridStrokeDashes](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MinorGridStrokeDashes.html) property.

**To set the thickness for major/minor grid lines**

You can specify the thickness for major/minor grid lines using the [MajorGridStrokeThickness](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorGridStrokeThickness.html)/[MinorGridStrokeThickness](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MinorGridStrokeThickness.html) properties.

**To set the fill for major grid lines**

You can apply a fill for the major gridlines using the [MajorGridFill](/componentone/api/wpf/online-chart/dotnet-framework-api/C1.WPF.C1Chart.4.6.2/C1.WPF.C1Chart.Axis.MajorGridFill.html) property.

## See Also

[Scrolling](/componentone/docs/wpf/online-chart/overview/ChartFeatures/Axis/Scrolling)