I'm using the built in chart class of .net 4 and I just cant find a way to remove the grid lines on the chart. Is there a way of doing it? And another question, how do I make the graph lines thicker?
Thanks :)
Select the worksheet. Click the Page Layout tab. To show gridlines: Under Gridlines, select the View check box. To hide gridlines: Under Gridlines, clear the View check box.
Definition of grid line : any of a series of numbered horizontal and perpendicular lines that divide a map into squares to form a grid by means of which any point may be located by a system of rectangular coordinates.
Chart1.ChartAreas["ChartArea1"].AxisX.MajorGrid.Enabled = false;
Chart1.ChartAreas["ChartArea1"].AxisY.MajorGrid.Enabled = false;
This will remove gridlines from chartarea.
I believe the line width can be changed using BorderWidth
and BorderDashStyle
of the series.
For the gridlines, try playing with MajorGrid
, MinorGrid
, MajorTickMark
, MinorTickMark
and Interval
on the axis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With