Mpandroidchart: xAxis.setTextSize() text gets clipped

Created on 23 Sep 2016  路  5Comments  路  Source: PhilJay/MPAndroidChart

I have a LinearLayout with the graph and a spacer below.
I have this code to style the x axis

XAxis xAxis = chart.getXAxis();
xAxis.setDrawGridLines(false);
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
xAxis.setTextSize(15);

the problem is that the text gets clipped on the bottom as you can see in the photo
No problem with the default text size
screenshot_1474635847

I tried to add margins and padding but nothing changed.
I'm using 3.0.0-beta1 version

Most helpful comment

try call this method:
mChart.setExtraBottomOffset(5);

All 5 comments

I also meet this problem, have you solved it?

No, I've tried few things, but nothing.
Maybe it's something related to the core.

@PhilJay any ideas?

Thanks for your feedback.

try call this method:
mChart.setExtraBottomOffset(5);

Thanks, problem solved!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tsengvn picture tsengvn  路  3Comments

botondbutuza picture botondbutuza  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

galex picture galex  路  3Comments

JungYongWook picture JungYongWook  路  3Comments