title: Horizontal Bar chart Swift
body: <p>I want it like this:</p>
  
  <p><a href="https://i.stack.imgur.com/9T702.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9T702.png" alt="enter image description here"></a></p>
  
  <p>But what I can do is, how to get rid of little red label:
  <a href="https://i.stack.imgur.com/H6EvR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H6EvR.png" alt="enter image description here"></a></p>
  
  <p>Core code for the chart:</p>
  
  <pre><code>var barchart = [BarChartDataEntry]()
  // some values
  barchart.append(value1)
  barchart.append(value2)
  barchart.append(value3)
  
  let barData = BarChartDataSet(values: barchart, label: "")
  barData.colors = [NSUIColor.red]
  let data = BarChartData(dataSet: barData)
  data.barWidth = 0.35
  cell.barChart.data = data
  cell.barChart.scaleYEnabled = false
  cell.barChart.chartDescription?.text = ""
  cell.barChart.scaleXEnabled = false
  cell.barChart.pinchZoomEnabled = false
  cell.barChart.doubleTapToZoomEnabled = false
  cell.barChart.rightAxis.enabled = false
  cell.barChart.xAxis.drawGridLinesEnabled = false
  cell.barChart.leftAxis.drawGridLinesEnabled = false
  cell.barChart.leftAxis.drawAxisLineEnabled = false
  cell.barChart.xAxis.drawAxisLineEnabled = false
  cell.barChart.xAxis.drawLabelsEnabled = false
  cell.barChart.leftAxis.drawLabelsEnabled = false
  cell.barChart.animate(yAxisDuration: 1.5, easingOption: .easeInOutQuart)
  return cell
  </code></pre>
  
  <p>I would like to set max value and make labels rounded as in the image above. I am using <a href="https://github.com/danielgindi/Charts" rel="nofollow noreferrer">https://github.com/danielgindi/Charts</a>. </p>