2

I'm using iOS-Charts and after upgrading to Swift3, I'm now noticing there is a strange blank space where the description would go at the bottom of the chart. I tried hiding the description (setting it to "" or enabled = false) but it still shows this gap. I'd prefer to just shift everything down so the 0 is nice and neat on the first line. Any ideas?

Image:

enter image description here Any ideas how to remove this?

Thanks!

NullHypothesis
  • 4,286
  • 6
  • 37
  • 79
  • Do you ever have negative values? – Aditya Garg Jan 01 '17 at 04:35
  • No, good thinking though! It almost seems like this is the spot where the label would go, though. I assume it might be because it's set to "" or something, but I'm not seeing a way to actually remove it. Do you think this could be the reason? Some null/default initialization causes the space, and I need to somehow set hidden on this setting? – NullHypothesis Jan 03 '17 at 22:19

1 Answers1

5

You can set the minimum axis value so that it hide the above line try this code as

barChartView.leftAxis.axisMinimum = 0
Umesh Verma
  • 876
  • 7
  • 28