How can I remove grid lines from chart? I use standard Chart library.
Thanks!
You can disable MajorGrid or MinorGrid of each of the axis of the desired chart-area:
MajorGrid
MinorGrid
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
1.4m articles
1.4m replys
5 comments
57.0k users