Category / Section
How to make visible the grid lines of primary category axis in the chart?
1 min read
There are two types of grid lines in chart.
- Major Grid Lines
- Minor Grid Lines
To make the major and minor grid lines visible, set HasMajorGridLines, HasMinorGridLines property of PrimaryCategoryAxis to true.
C#
columnChart.PrimaryCategoryAxis.HasMajorGridLines = true; columnChart.PrimaryCategoryAxis.HasMinorGridLines = true;
VB
columnChart.PrimaryCategoryAxis.HasMajorGridLines = True columnChart.PrimaryCategoryAxis.HasMinorGridLines = True