MPAndroidChart chart padding

Bmbariah picture Bmbariah · Dec 18, 2015 · Viewed 9.2k times · Source

I can't seem to enable padding on the horizontal BarChart in MPAndroidChart... Like on the screenshot below..the word commentary is cut off..even on tablets, both orientations e.t.c

Answer

Philipp Jahoda picture Philipp Jahoda · Dec 19, 2015

Have a look at the viewport documentation of the MPAndroidChart library.

There you find a method called setExtraOffsets(float left, float top, float right, float bottom) that allows to set additional offsets (as you require) for the chart.