title: How to add Strings on X Axis in iOS-charts?
body: <p>With the new release i had some troubles to create some graphs the previous code was:</p>
  
  <pre><code>func setChart(dataPoints: [String], values: [Double]) {
      var dataEntries: [BarChartDataEntry] = []
  
      for i in 0..&lt;dataPoints.count {
          let dataEntry = BarChartDataEntry(value: values[i], xIndex: i)
          dataEntries.append(dataEntry)
      }
  
      let chartDataSet = BarChartDataSet(yVals: dataEntries, label: "Units Sold")
      let chartData = BarChartData(xVals: months, dataSet: chartDataSet)
      barChartView.data = chartData
  }
  </code></pre>
  
  <p>You can pass the values for example an array of months using the line:</p>
  
  <pre><code>let chartData = BarChartData(xVals: months, dataSet: chartDataSet)
  </code></pre>
  
  <p>After the new release the code to implement the same graph is:</p>
  
  <pre><code>func setChart(dataPoints: [String], values: [Double]) {          
      var dataEntries: [BarChartDataEntry] = []
  
      for i in 0..&lt;dataPoints.count {
          let dataEntry = BarChartDataEntry(x: Double(i+2), y:values[i], data: months )
          dataEntries.append(dataEntry)
      }
  
      let chartDataSet = BarChartDataSet(values: dataEntries, label: "Units Sold")
  
      let chartData = BarChartData()
      chartData.addDataSet(chartDataSet)
      barChartView.data = chartData
  }
  </code></pre>
  
  <p>I was trying a few hours but i couldn't find a way to modify the X axis values, i hope someone can help me, thanks!!</p>