title: Only integer labels in X-Axis Winforms Chart
body: <p>I'm writing a calculation application in WinForms. At the end, a graph is generated. Unfortunately, I can not do that so that the labels on the X axis are only integers, and thus that the vertical lines on the graph also correspond to the integer values.</p>
  
  <p>Values on the X axis are double values, I want them to be between integers.</p>
  
  <pre class="lang-cs prettyprint-override"><code>for (int i = 0; i &lt; _results.Bests.Count; i++)
  {
      resChart.Series["Best"].Points.AddXY(i, _results.Bests[i]);
      var resval = _results.ResValues[i];
      int count = 1;
      foreach (var elem in resval)
      {
          double xVal = i + (1.0 / resval.Count) * count;
          resChart.Series["Results"].Points.AddXY(xVal, elem);
          count++;
          }
  }
  </code></pre>
  
  <p>To sum up, on the graph I have labels on the X axis, e.g. 0.3333, 1.3333, 2.3333 and I want them to be 1, 2, 3, etc.</p>