title: Setting iOS-Charts Float to Integer YAxis
body: <p>I tried setting yAxis to integer using NSNumberFormatter,</p>
  
  <pre><code>yAxis.valueFormatter = NSNumberFormatter()
  yAxis.valueFormatter.minimumFractionDigits = 0
  </code></pre>
  
  <p>but the problem here is I am getting duplicate yAxis values - 0, 1, 2, 2, 3, 4 and 5. 
  How this can be eliminated?</p>
  
  <p><a href="https://i.stack.imgur.com/bRGCr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRGCr.png" alt="enter image description here"></a></p>
  
  <p>These are the issues I am facing. I tried setting </p>
  
  <pre><code>    barChart.leftAxis.axisMaximum = 5.0
      barChart.leftAxis.axisMinimum = 0.0
      barChart.leftAxis.customAxisMin = 0
      barChart.leftAxis.customAxisMax = 5.0
  </code></pre>
  
  <p>but not helping any suggestions?</p>