# Axis Grid Lines

## Content



Grid lines are lines that appear perpendicular with major/minor tick marks at unit major/minor intervals. The lines that appear perpendicular to an axis at Major intervals are controlled by the [GridMajor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMajor.html) property and the lines that appear perpendicular to an axis at Minor intervals are controlled by the [GridMinor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMinor.html) property. Grid lines can help improve the readability of the Chart when you are looking for exact values. The major and minor grid lines appearances are controlled by the [ChartGridStyle](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartGridStyle.html) properties.

### To set the major grid lines appearance properties

Use the [GridMajor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMajor.html) property to set the major grid lines appearance properties. The [GridMajor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMajor.html) property gets the C1.Win.C1Chart.ChartGridStyle object that controls the appearances for the major grid lines.

### To set the minor grid lines appearance properties

Use the [GridMinor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMinor.html) property to set the minor grid lines appearance properties. The [GridMinor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.GridMinor.html) property gets the C1.Win.C1Chart.[ChartGridStyle](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartGridStyle.html) object that controls the appearances for the minor grid lines.

### OnTop

The [OnTop](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.OnTop.html) property specifies whether the axis grid lines and tick marks are drawn over the chart image or behind it. Setting this property to **True** will bring the grid lines and the tick marks to the foreground over the chart image, while setting it to **False** will bring the chart image to the foreground.

## See Also

[Axis Bounds](/componentone/docs/win/online-chart2d/chartareaandplotarea/axes/axisbounds)