Monday, September 20, 2010 1:47 PMHi ,I m using one line chart in my application .i want to remove back lines ..i just want tho show the bars thats it in my chart.. is there any way to remove those line..
Monday, September 20, 2010 1:55 PMModerator
do you mean the GridLines?
look in the Chart.ChartAreas.AxisX or AxisY. That is where the GridLines property is
you can set the Enabled property to False
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee Saturday, January 21, 2012 3:14 AM
Monday, September 20, 2010 1:56 PMModerator
I'm not sure which black lines you are referring to, but you could try:
'remove only the gridlines Chart1.ChartAreas(0).AxisX.MajorGrid.Enabled = False Chart1.ChartAreas(0).AxisY.MajorGrid.Enabled = False 'or remove the axes and gridlines (will also remove axis labels) Chart1.ChartAreas(0).AxisX.Enabled = AxisEnabled.False Chart1.ChartAreas(0).AxisY.Enabled = AxisEnabled.False
Tuesday, September 21, 2010 7:20 AMthanks man ..working...
Saturday, January 21, 2012 3:14 AM