HackPlan / AndroidCharts

An easy-to-use Android charts library with animation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set bar colour in a BarView

itsAlexNguyen opened this issue · comments

How can I set the barView colour? Can't seem to find it in XML or in code. Any help?

In BarView.java, there are three variables responsible for the color: TEXT_COLOR, BACKGROUND_COLOR, FOREGROUND_COLOR. You can just change their values manually inside BarView.java, but I thinks it's better if you make setters and getters for these variables and send in the values from your code.