title: Make line chart with values and dates
body: <p>In my app i use ios-charts library (swift alternative of MPAndroidChart).
  All i need is to display line chart with dates and values. </p>
  
  <p>Right now i use this function to display chart</p>
  
  <pre><code>func setChart(dataPoints: [String], values: [Double]) {       
  
      var dataEntries: [ChartDataEntry] = []
  
      for i in 0..&lt;dataPoints.count {
          let dataEntry = ChartDataEntry(value: values[i], xIndex: i)
          dataEntries.append(dataEntry)
      }        
  
      let lineChartDataSet = LineChartDataSet(yVals: dataEntries, label: "Items count")
      let lineChartData = LineChartData(xVals: dataPoints, dataSet: lineChartDataSet)
      dateChartView.data = lineChartData      
  }
  </code></pre>
  
  <p>And this is my data:</p>
  
  <pre><code>xItems = ["27.05", "03.06", "17.07", "19.09", "20.09"] //String    
  let unitsSold = [25.0, 30.0, 45.0, 60.0, 20.0] //Double
  </code></pre>
  
  <p>But as you can see - xItems are dates in "dd.mm" format. As they are strings they have same paddings between each other. I want them to be more accurate with real dates. For example 19.09 and 20.09 should be very close. I know that i should match each day with some number in order to accomplish it. But i don't know what to do next - how i can adjust x labels margins?</p>
  
  <p><strong>UPDATE</strong>
  After small research where i found out that many developers had asked about this feature but nothing happened - for my case i found very interesting alternative to this library in Swift - <a href="https://github.com/kevinzhow/PNChart-Swift" rel="nofollow">PNChart</a>. It is easy to use, it solves my problem.</p>