title: How do I force a chart to auto adjust Y Axis Maximum?
body: <p>I have a .NET chart which I am populating at runtime</p>
  
  <p>The chart appears within a report.  For each band in my report, I clear all the series and add them back in using code</p>
  
  <pre><code>            Series s = new Series();
              s.Font = new Font("Verdana", 8f);                
  
              int i = 0;
              foreach (var month in line.Months)
              {
                  DataPoint p = new DataPoint();
  
                  p.XValue = i;
                  p.YValues = new Double[] { month.LineValue ?? 0 };
                  s.Points.Add(p);
  
                  i++;
              }
  </code></pre>
  
  <p>When I populate the chart the second time, the Y Axis maximum stays on 2000, i.e. is not being recalculated</p>
  
  <p>How do I force recalculation?</p>
  
  <p>I have ScaleBreakStyle enabled on the Y Axis</p>
  
  <p>If I try to set IsLogarithmic to true on the Y Axis I get a X instead of a chart</p>
  
  <p>I am using Visual Studio 2010 with the System.Windows.forms.DataVisualization.Charting.Chart</p>
  
  <p>Paul</p>