Mpandroidchart: How to set BarChart bar width and spacing?

Created on 3 Nov 2014  路  5Comments  路  Source: PhilJay/MPAndroidChart

How can i increase barchart width and Spacing between them?

Most helpful comment

Please check the example project, it's all there.

Space between individual bars:

barDataSet.setBarSpacePercent(...);

Space between DataSets:

barData.setGroupSpace(...);

Values in percent.

All 5 comments

Please check the example project, it's all there.

Space between individual bars:

barDataSet.setBarSpacePercent(...);

Space between DataSets:

barData.setGroupSpace(...);

Values in percent.

Thanks

@PhilJay Is there a way to know the width of the full X column in pixels/dp? and with full column I mean this:

screenshot-2017-03-09_11 21 42 426

@PhilJay Is there a way to know the width of the full X column in pixels/dp? and with full column I mean this:

screenshot-2017-03-09_11 21 42 426

is there any answer to this question? It would be quite useful to get the this data in one clear way so it would make easier to make a lot of stuff. In special manage the number of labels dynamically.

@PhilJay can you please explain how to get width column in pixels?

Was this page helpful?
0 / 5 - 0 ratings