locked
Need to remove back line in line chart.. how to acheive RRS feed

  • Question

  • Hi ,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:47 PM

Answers

  • 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
    Monday, September 20, 2010 1:56 PM
    Moderator

All replies

  • 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

    Monday, September 20, 2010 1:55 PM
    Moderator
  • 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
    Monday, September 20, 2010 1:56 PM
    Moderator
  • thanks man ..working...
    • Marked as answer by vishveshk Monday, January 23, 2012 7:16 AM
    • Unmarked as answer by jwavilaModerator Thursday, April 5, 2012 9:10 AM
    Tuesday, September 21, 2010 7:20 AM
  • thanks man ..working...

    When someone answers your question, please mark it as the answer.

    Thanks!


    Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)
    Saturday, January 21, 2012 3:14 AM