title: How to move x-axis grids on chart whenever a data is added on the chart
body: <p>// gridlines are not moving along as the line point changes. what code should I add to make it look like the cpu performance chart?</p>
  
  <pre><code>    Series test1 = new Series();
      Series test2 = new Series();
  
      private void Form1_Load(object sender, EventArgs e)
      {        
          test1.Color = Color.Blue;
          test1.ChartType = SeriesChartType.FastLine;
          test1.BorderWidth = 2;
  
          test2.Color = Color.Red;
          test2.ChartType = SeriesChartType.FastLine;
          test2.BorderWidth = 2;
  
          chart1.Series.Add(test1);
          chart1.Series.Add(test2);
  
          chart1.ChartAreas[0].AxisX.MajorGrid.Enabled = true;
          chart1.ChartAreas[0].AxisX.IsStartedFromZero = true;
          chart1.ChartAreas[0].AxisX.IntervalOffsetType = DateTimeIntervalType.Number;         
      }
  
      private void timer1_Tick(object sender, EventArgs e)
      {
          Axis xaxis = chart1.ChartAreas[0].AxisX;
          xaxis.Minimum = xaxis.Maximum - 10;
          Random rnd = new Random();
          int dice = rnd.Next(1, 7); 
          float num1 = rnd.Next(1, 13);
          test1.Points.Add(num1);
          test2.Points.Add(dice);
          chart1.ResetAutoValues();
      }
  </code></pre>