Mpandroidchart: remove space on horizontal bar chart

Created on 1 Feb 2016  路  1Comment  路  Source: PhilJay/MPAndroidChart

hi again, one more question

do you have any idea how to remove this unwanted spacing , so i can make the bar fill the available width space(full)? i'm making a horizontal bar chart as a percentage chart so the total value for each chart is 100.

screenshot_20160202-043128 copy

and also why this method is not working? u can see from the image that the offsets are still exist.
chart.setViewPortOffsets(0f, 0f, 0f, 0f);

thanks before

>All comments

Yes, you can control this space via YAxis: https://github.com/PhilJay/MPAndroidChart/wiki/YAxis-%28YLabels%29

By setting the minima and maxima accordingly.

Also chart.setExtraOffsets(...) can help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

botondbutuza picture botondbutuza  路  3Comments

OnlyInAmerica picture OnlyInAmerica  路  3Comments

mrZizik picture mrZizik  路  3Comments

tsengvn picture tsengvn  路  3Comments

manucheri picture manucheri  路  3Comments