title: How to set minimum and maximum of the x axis using iOS-Charts
body: <p>I'm trying to use ios-charts to draw charts and I have figured out how to set the minimum and maximum of the y axis. However, I have spent more than 5 hours and I still cannot set the minimum and maximum for the x axis. So can anyone help me?</p>
  
  <p>The code I used to limit the y axis is like this</p>
  
  <pre><code>statsView.leftAxis.customAxisMax = 21.00
  statsView.leftAxis.customAxisMin = 0.00
  </code></pre>
  
  <p>and there are just too more points on the screen
  <a href="http://i.stack.imgur.com/6G5rj.png" rel="nofollow">too many data</a></p>