title: How to get the AxisX interval MS Chart Control
body: <p>I am trying to get AxisX interval for MS Chart Control in code behind. But when i try to retrieve the value, it returns zero even though it has a default value.</p>
  
  <pre><code>'Doesn't return the correct value, only returns 0
  Dim XInterval As Double = mainChart.ChartAreas(0).AxisX.Interval
  '  
  '
  'This allows me to set the value and works just fine, but I also need to get it first.
  mainChart.ChartAreas(0).AxisX.Interval = 2000
  </code></pre>