title: Force to show min/max on x axis
body: <p>I am working with <a href="https://github.com/danielgindi/Charts" rel="nofollow noreferrer">library</a>. Anybody know if is it possible to force show min and max label on x-axis.</p>
  
  <p>What I have:</p>
  
  <p><a href="https://i.stack.imgur.com/cQkyX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cQkyX.png" alt="enter image description here"></a></p>
  
  <p>What I want to achieve:</p>
  
  <p><a href="https://i.stack.imgur.com/aIudY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aIudY.png" alt="enter image description here"></a></p>
  
  <p>My implementation:</p>
  
  <pre><code>private func prepareXAxis() {
      lineChart.xAxis.labelPosition = .bottom
      lineChart.xAxis.valueFormatter = ChartXAxisDateValueFormatter()
      lineChart.xAxis.labelFont = UIFont.pmd_robotoRegular(ofSize: 13.0)
      lineChart.xAxis.labelTextColor = UIColor.pmd_darkGrey
  }
  </code></pre>
  
  <p>And implementation of my own <code>ValueFormatter</code>:</p>
  
  <pre><code>import Foundation
  import Charts
  
  class ChartXAxisDateValueFormatter: NSObject, IAxisValueFormatter {
  
      func stringForValue(_ value: Double, axis: AxisBase?) -&gt; String {
          let dateFormatter = DateFormatter()
          dateFormatter.dateFormat = "hh:mm\ndd MMM"
  
          return dateFormatter.string(from: Date(timeIntervalSince1970: value))
      }
  }
  </code></pre>
  
  <h3>Edit</h3>
  
  <p>I added this code but first and last label on x-axis is still skipped:</p>
  
  <pre><code>lineChart.xAxis.axisMinimum = lineDataSet.xMin
  lineChart.xAxis.axisMaximum = lineDataSet.xMax
  lineChart.xAxis.avoidFirstLastClippingEnabled = false
  lineChart.xAxis.granularity = 1.0
  </code></pre>
  
  <p>I checked <code>lineDataSet.xMin</code> and <code>lineDataSet.xMax</code>. They have valid values.</p>