Paul
Paul

Reputation: 929

MPAndroidChart: x axis labels with big text size are cut off

I have used MPAndroidChart to make a LineChart and set the x axis text size to 15. Unfortunately, the x axis labels are cut off at the top due to the big text size:

enter image description here

How can I solve this problem?

Upvotes: 15

Views: 5438

Answers (1)

Jacek Kwiecień
Jacek Kwiecień

Reputation: 12637

chart.extraTopOffset is there to save you :D

Upvotes: 38

Related Questions