Search code examples
swiftlinechartios-charts

Not showing all of the label on the x-axis in Swift 2


I am using the Charts framework (danielgindi/Charts). My line chart is not showing all of the text on the x-axis on the last value. See image below.

How can I ensure that the whole text is shown?

enter image description here


Solution

  • chartView.xAxis.avoidFirstLastClippingEnabled = true