How can I remove grid lines from chart? I use standard Chart library.
Thanks!
See Question&Answers more detail:osHow can I remove grid lines from chart? I use standard Chart library.
Thanks!
See Question&Answers more detail:osYou can disable MajorGrid
or MinorGrid
of each of the axis of the desired chart-area:
mainChart.ChartAreas[0].AxisX.MajorGrid.Enabled = false;
mainChart.ChartAreas[0].AxisX.MinorGrid.Enabled = false;
mainChart.ChartAreas[0].AxisY.MajorGrid.Enabled = false;
mainChart.ChartAreas[0].AxisY.MinorGrid.Enabled = false;
as seen below: https://github.com/sinairv/MSChartWrapper/blob/master/MSChartWrapper/ChartWrapper.cs#L58-L61