This document describes the concepts of using axis grid lines and tickmarks in the ASP.NET Chart Control. In addition, it highlights how a chart's diagram can be made interlaced. Before reading this text, it may be useful to review the basics of using axes and axis scale types in the WebChartControl.
Tickmarks divide an axis into equal sections by a step whose value is determined by the special options of an axis. Tickmarks are used to improve the readability of chart data. Tickmarks may be accompanied by axis labels.
Grid Lines are the reference lines used to improve the readability of a chart's visual data. They are drawn across an axis from its tickmarks through the entire chart.
There are two types of tickmarks and grid lines: major and minor. The following images demonstrate them.
Besides tickmarks, it is also possible to enable Interlacing for the chart's diagram from any of its axes. You can make the diagram's background "ribbed" (alternating two colors) from the AxisBase.Interlaced property. The default interlacing color can be changed from the AxisBase.InterlacedColor property, referenced to its fill style (Axis2D.InterlacedFillStyle).
Note that interlacing does not depend on whether or not axis grid lines or tickmarks are visible. Moreover, interlacing and grid lines are maintained after the Axis2D.Visibility property is set to false. This situation is illustrated in the following image.
Interlacing depends on the spacing of grid lines. It is automatically determined by the ScaleGridOptionsBase.AutoGrid property (set to true by default) based on the major tickmarks of the axis.
In addition, you can manually define the number of minor tickmarks to be shown between each pair of major tickmarks from the AxisBase.MinorCount property. Note that this property also affects the number of minor grid lines, which are described in the next section of this document.
As with tickmarks, the number of minor grid lines to be displayed between each pair of major gridlines is determined by the AxisBase.MinorCount property. Again, note that this property affects both minor tickmarks and grid lines.