AndroidCharts icon indicating copy to clipboard operation
AndroidCharts copied to clipboard

How to set bar colour in a BarView

Open itsAlexNguyen opened this issue 7 years ago • 1 comments

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

itsAlexNguyen avatar May 07 '17 18:05 itsAlexNguyen

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.

chrisngn avatar May 19 '17 18:05 chrisngn