title: Bar Chart jumps up when there's more than 2 columns
body: <p>I am working on a chart with data set change when the button is pressed. But it looks like when I have more than 2 bars, the chart origin point shifts.</p>
  
  <p><img src="https://i.giphy.com/26xBMdkLbrza0dOM0.gif" alt="Chart" /></p>
  
  <p>Two columns is fine:</p>
  
  <p><img src="https://i.giphy.com/l3q2SIBfBbIsJpw64.gif" alt="2 column chart" /></p>
  
  <p><strong>Creating data set:</strong></p>
  
  <pre><code>private func buildMoodDummyBarData(period: Period) -&gt; [BarChartDataEntry] {
  
      if period == .week {
          let entry1 = BarChartDataEntry(x: 0, y: 720)
          let entry2 = BarChartDataEntry(x: 1, y: 440)
          let entry3 = BarChartDataEntry(x: 2, y: 0)
          let entry4 = BarChartDataEntry(x: 3, y: 30)
          let entry5 = BarChartDataEntry(x: 4, y: 30)
  
          return [entry1, entry2, entry3, entry4, entry5]
  
      } else if period == .month {
  
          let entry1 = BarChartDataEntry(x: 0, y: 100)
          let entry2 = BarChartDataEntry(x: 1, y: 300)
          let entry3 = BarChartDataEntry(x: 2, y: 50)
          let entry4 = BarChartDataEntry(x: 3, y: 30)
          let entry5 = BarChartDataEntry(x: 4, y: 30)
  
          return [entry1, entry2, entry3, entry4, entry5]
  
      } else {
  
          return []
      }
  }
  </code></pre>
  
  <p><strong>Finishing building data set and changing bar colors:</strong></p>
  
  <pre><code>func buildMoodBarData(period: Period) -&gt; BarChartData? {
  
      let entries = buildMoodDummyBarData(period: period)
  
      let set = BarChartDataSet(values: entries, label: nil)
      set.highlightEnabled = false
  
      let tempData = BarChartData(dataSet: set) // Just to find max
      let max = tempData.yMax
      let onePercent = max / 100
  
      var colors = [UIColor]()
      for item in entries {
          let percentValue = item.y / onePercent
          colors.append(setColor(value: percentValue))
      }
      set.colors = colors
  
      let data = BarChartData(dataSet: set)
      data.setDrawValues(true)
      data.barWidth = 0.72
  
      return data
  }
  
  // barChartView is storyboard outlet
  private  func makeMoodBarChart() {
  
      barChartView.backgroundColor = UIColor.red
      barChartView.chartDescription = nil
      barChartView.leftAxis.enabled = false
      barChartView.rightAxis.enabled = false
      barChartView.legend.enabled = false
      barChartView.xAxis.enabled = false
  }
  
  private func updateMoodBarChart(with data: BarChartData) {
  
      barChartView.data = data
      barChartView.fitBars = false
      barChartView.fitScreen()
  }
  </code></pre>