title: How can I properly format the Y axis labels on an ASP.NET chart?
body: <p>I am trying to construct a chart using the native ASP.NET 4.0 charting control.</p>
  
  <p>I've done nearly everything I wanted to do, but if you look at the following screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/H1Hzy.png" alt="enter image description here"></p>
  
  <p>You'll notice that the Y axis labels are all wonky - that is, they are decimals, and they don't fall directly on any of the actual gridlines.</p>
  
  <p>The purpose of my chart is to show a value that will always be between 0 and 16. I need to know the exact value, so I was able to set the gridlines to represent each value, by using this code:</p>
  
  <pre><code>Chart1.ChartAreas["ChartArea1"].AxisY.MajorGrid.Interval = 1;
  </code></pre>
  
  <p>As you can see, it is showing all lines, 0 to 16. However, the Y axis labels not only do not line up, but aren't even whole values. I would like there to be a label for EACH gridline, and I'd like them to be whole values.</p>
  
  <p>I've done my share of googling, but I mostly find stuff pertaining to turning off the gridlines altogether, which is not what I want. </p>
  
  <p>Any ideas?</p>