MPAndroidChart: Rotate Labels of X-Axis by 90 degrees in BarChart

user1615184 picture user1615184 · Aug 10, 2015 · Viewed 7.2k times · Source

My text in xAxes of BarChart from MPAndroidChart is too long. How I can rotate label of xAxes by 90 degrees?

Answer

Hardik Amal picture Hardik Amal · Jan 21, 2016

Now it is possible in library version 2.1.6

try this

XAxis xAxis=barChart.getXAxis();
xAxis.setLabelRotationAngle(-45);