Rakesh Rakesh - 5 months ago 448
Android Question

How to modify the width of bar in bar chart in mp android Chart library

I would like modify the size of bar present in bar chart.Could you let us know where to check for modify size of bar in bar chart in mp android chart

Answer

You can reduce the spacing between the bars that will automatically increase the width of bars.

BarDataSet set_a = new BarDataSet(vals, "Set A");
set_a.setBarSpacePercent(50f);