How to draw a bar chart in Android? (no APIs) | SoloLearn: Learn to code for FREE!


How to draw a bar chart in Android? (no APIs)

Hi guys, I'm looking for a way to draw a bar chart in Android. I've tried with making custom views and with already included views, but I can't make them work as I need them to. My bars don't resize at the container's size. The bar should have this elements: Needed elements: Two joined bars like the ones in red to compare each bar. As the image, I need three pairs of bars (6 in general) Count of numbers (the ones in blue) The guides of colors from the top right (green ones) The optional elements (not necessary but would be nice to have) should be the orange and yellow ones. I need to make it without any libraries or external APIs.

8/29/2019 7:54:34 PM


1 Answer

New Answer