MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to set BarChart bar width and spacing?

Open Bishalsingh opened this issue 12 years ago • 5 comments

How can i increase barchart width and Spacing between them?

Bishalsingh avatar Nov 03 '14 17:11 Bishalsingh

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

Space between individual bars:

barDataSet.setBarSpacePercent(...);

Space between DataSets:

barData.setGroupSpace(...);

Values in percent.

PhilJay avatar Nov 03 '14 17:11 PhilJay

Thanks

Bishalsingh avatar Nov 04 '14 04:11 Bishalsingh

@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

mario-galvan-dev avatar Mar 09 '17 17:03 mario-galvan-dev

@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.

CurtesMalteser avatar Dec 18 '19 08:12 CurtesMalteser

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

CurtesMalteser avatar Dec 18 '19 10:12 CurtesMalteser