title: ASP.net chart control: hide all lines (axes, etc.) except data points
body: <p>I'm trying to generate <a href="http://en.wikipedia.org/wiki/Sparkline" rel="noreferrer">sparklines</a> for a dashboard using the Microsoft chart control on ASP.net.  Sparklines generally have no axes or anything other than the data points showing. </p>
  
  <p>I've succesfully turned off most of the lines but I'm stuck with one horizontal and one vertical line I can't figure out how to get rid of. Here's what I see:</p>
  
  <p><img src="https://i.stack.imgur.com/sAxvN.png" alt="Actual"></p>
  
  <p>Here's what I want:</p>
  
  <p><img src="https://i.stack.imgur.com/9Kmna.png" alt="Desired"></p>
  
  <p>Here's an excerpt of the code I'm using (minus the actual data): </p>
  
  <pre><code>Chart2.Width = 100;
  Chart2.Height = 60;
  Chart2.BorderlineWidth = 0;
  
  var name = "Northeast Region";
  ChartArea area = new ChartArea(name);
  area.AxisX.LabelStyle.Enabled = false;
  area.AxisY.LabelStyle.Enabled = false;
  area.AxisX.MajorGrid.Enabled = false;
  area.AxisY.MajorGrid.Enabled = false;
  area.AxisY.MajorTickMark.Enabled = false;
  area.AxisY.MinorTickMark.Enabled = false;
  area.AxisX.MajorTickMark.Enabled = false;
  area.AxisX.MinorTickMark.Enabled = false;
  area.BorderWidth = 0;
  
  Chart2.ChartAreas.Add(area);
  Series s = new Series(area.Name);
  s.ChartType = SeriesChartType.Line;
  s.ChartArea = area.Name;
  s.Color = System.Drawing.Color.Gray;
  foreach (var row in Data)
  {
      s.Points.AddXY(row.StartDate, row.Sales);
  }
  Chart2.Series.Add(s);
  </code></pre>
  
  <p>Any ideas what I'm doing wrong?</p>