Fill a line chart with color android

I created a line graph using GraphView demographics. But I need to fill the areas between the points with a specific color.

Line graph with color

This is what I want to achieve. Can anybody help me?

+4
source share
1 answer

In the current version, the background color of LineGraphView is hard-coded.

If you want to change the color, you must change it in the source code. So check out the source code from Github and change it.

This is the line that needs to be changed: https://github.com/jjoe64/GraphView/blob/master/src/com/jjoe64/graphview/LineGraphView.java#L25

0
source

All Articles