Mpandroidchart: Barchart x Axis labels are overlapping

Created on 2 Apr 2017  路  10Comments  路  Source: PhilJay/MPAndroidChart

Hi ,
As my x axis labels are long , they are overlapping on each other in bar chart
There is method setWordWrapEnabled available for legends, but , same method is not available for XAxis mChart.getXAxis() .

setWordWrapEnabled is available in iOS for xAxis .

Is there any way to fix this in android ?

Most helpful comment

+1

All 10 comments

+1

I'm seeing the same thing. Image attached.
device-2017-06-02-015403

did you got the solution ? @XaveT

No, I haven't seen a solution yet.

+1

xAxis.setLabelRotationAngle(45f);

It is working for me

I have the same issue but 45 degree angle doesn't look good on the chart ...

xAxis.setLabelRotationAngle(45f);

It is working for me

Yes it's working fine.

+1

Any solution for x-axis label overlapping issue?

Was this page helpful?
0 / 5 - 0 ratings