Abdolrahman Farshgar
Abdolrahman Farshgar

Reputation: 339

Android Customized Barchart

I need to create a chart like this picture bellow in Android. customized chart picture

and I am already aware of MPAndroidChart and AndroidHelloCharts libraries. but none of them are capable of drawing such thing.

do you know any way to create a chart like this? please explain and at least suggest me some tutorials or articles that are related to what I am about to do.

thank you

Upvotes: 0

Views: 44

Answers (1)

Dishonered
Dishonered

Reputation: 8841

Its actually pretty simple to create your own bar chart.

First you need to use drawRect to draw a rectangle.

And then drawText to draw text below the rectangle.

You may have noticed that both methods take a paint object as the parameter , you can think of the paint object like a brush. So you set the color to the brush and draw different elements.

I have written about it

here

Upvotes: 1

Related Questions