MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to set barWidth in pixels ?

Open CodingCodersCode opened this issue 3 years ago • 1 comments

How to set barWidth in pixels ?

CodingCodersCode avatar Aug 13 '22 00:08 CodingCodersCode

the library provide function setBarWidth, /** * Sets the width each bar should have on the x-axis (in values, not pixels). * Default 0.85f * * @param mBarWidth */ image so I will set barWidth = 10/(10+9) = 0.52。 If you really want get pixels,you can caculate the barWidth depend your chart width and data count.

gs666 avatar Aug 16 '22 02:08 gs666