Mpandroidchart: Stacked area chart with filling of colors between line charts

Created on 28 Jun 2016  路  4Comments  路  Source: PhilJay/MPAndroidChart

Hi, I wanted to ask if there is any way to fill the chart with a particular color between different line data sets.
I want to achieve chart like this
68747470733a2f2f7261772e6769746875622e636f6d2f6e756d65747269636c61627a2f6e756d416e64726f69644368617274732f6d61737465722f73637265656e73686f74732f737461636b65642d617265612e706e67

Using FillFormatter doesn't seem to work in this case as FillFormatter expects a definite Y value. I want to fill different colors between each line data set.
What I am getting is that all line data set fills color to Y=0 resulting in overlapping of colors at the bottom.

Most helpful comment

+1

All 4 comments

Just set the fill-alpha value to maximum (255) than the overlapping will not be noticed. Also make sure the order of your data is correct.

lineDataSet.setFillAlpha(255)

@PhilJay Would it be hard to implement support for StackedArea chart?
I'm asking because I need some transparency, so I cannot set alpha to 255. I would be willing to implement it. I'm just curious if there are some obstacles.

@PhilJay Or another way: would it be possible to draw line grid above the lines/areas?

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

galex picture galex  路  3Comments

chathudan picture chathudan  路  3Comments

thanhcly920 picture thanhcly920  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments

JungYongWook picture JungYongWook  路  3Comments