title: Time on x-axis in C# charts
body: <p>I have the following graphic in my <code>Windows Form</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/gShbw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gShbw.png" alt="enter image description here"></a></p>
  
  <p>I set the X axis to display Time, as shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/YsZ1X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YsZ1X.png" alt="enter image description here"></a></p>
  
  <p>Here are the methods I call to draw the graph:</p>
  
  <pre><code>        private void funcaoQualquer()
          {
              while (true)
              {
                  funcaoArray[funcaoArray.Length - 1] = hScrollBar1.Value;
                  Array.Copy(funcaoArray, 1, funcaoArray, 0, funcaoArray.Length - 1);
                  if (chart1.IsHandleCreated)
                  {
                      this.Invoke((MethodInvoker)delegate { atualizaGraficoFuncaoQualquer(hScrollBar1.Value); });
                  }
                  else
                  {
                      //...
                  }
                  Thread.Sleep(250);
              }
          }
  
          private void atualizaGraficoFuncaoQualquer(int valor)
          {
              for (int i = 0; i &lt; funcaoArray.Length - 1; ++i)
              {
                  chart1.Series["Series1"].Points.Add(valor);
              }
          }
  </code></pre>
  
  <p>However, when drawing the graph and over time, the X axis does not change the values. I think it's being displayed as hours. How do I change to minutes or seconds?</p>