Jess Murray
Jess Murray

Reputation: 1339

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

Upvotes: 0

Views: 1706

Answers (2)

Luat Vu Dinh
Luat Vu Dinh

Reputation: 480

Other way: chartView.xAxis.setLabelsToSkip(0)

Upvotes: -1

Jess Murray
Jess Murray

Reputation: 1339

chartView.xAxis.avoidFirstLastClippingEnabled = true

Upvotes: 3

Related Questions