MajorGridLines

Axis.MajorGridLines property

Represents major gridlines on a chart axis.

public Line MajorGridLines { get; }

Examples

[C#]

chart.ValueAxis.MajorGridLines.IsVisible = false;
chart.CategoryAxis.MajorGridLines.IsVisible = true;

[Visual Basic]
chart.ValueAxis.MajorGridLines.IsVisible = false
chart.CategoryAxis.MajorGridLines.IsVisible = true

See Also