MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to reduce the space between the bar without increasing the bar width

Open sathishkumars92 opened this issue 10 years ago • 2 comments

Hi I need to put three bar which is static not more than three , so I want to put the bars in centre and dont want much space between the bars and bar size also be same and small

sathishkumars92 avatar Dec 15 '15 06:12 sathishkumars92

In your BarDataSet you should call .setBarSpacePercent(0). It will set spaces between bars to 0.

valentin-sobolev avatar Dec 16 '15 07:12 valentin-sobolev

With latest version setBarSpacePercent doesn't exists.

econBabar avatar Dec 20 '17 07:12 econBabar