title: How to use date for x-Axis in SwiftChart?
body: <p>I am trying to draw line chart in my project using SwiftChart pod. I am getting response from API as [&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-31&quot;] but graph works on double values so I don't know How I draw the chart.</p>
  <pre><code>import UIKit
  import SwiftChart
  class AnalyticsViewController: UIViewController {
      @IBOutlet weak var graphContainer: UIView!
      var graphData = [(x:0, y: 0.0)]
      var graphpResponseData = [[String: Any]]()
      override func viewDidLoad() {
          super.viewDidLoad()
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-31&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:2 , &quot;date&quot;: &quot;2020-10-30&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:1 , &quot;date&quot;: &quot;2020-10-29&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:29 , &quot;date&quot;: &quot;2020-10-28&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:1 , &quot;date&quot;: &quot;2020-10-27&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-26&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-25&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-24&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-23&quot;])
      graphpResponseData.append([&quot;activity_count&quot;:0 , &quot;date&quot;: &quot;2020-10-22&quot;])
      
     ???? unable to proceed
      //let chart = Chart(frame: CGRect(x: 0, y: 0, width: 300, height: 100))
              //let series = ChartSeries(data: graphData)
      //chart.add(series)
      //chart.xLabels = [1, 2, 3, 4]
      //chart.xLabelsFormatter = { String(Int(round($1))) + &quot;Oct&quot; }
      //graphContainer.addSubview(chart)
  }
  
  
  }
  </code></pre>
  <p>desired output <a href="https://i.stack.imgur.com/6iw2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6iw2A.png" alt="enter image description here" /></a></p>