We are trying to fill only one color in google area chart, with different line color.
If we use
isStacked:true
then it will change chart representation
(change y-axis max coordinate)
we want to fill only one color
(green color below the max border in chart).
Using a ComboChart and two sets of the same data, I believe I was able to achieve the desired result.
Note definitions for each
series
The first two are identical using
areaOpacity: 1
to prevent color mixThese are also not
visibleInLegend
You mean like this: https://jsfiddle.net/7uyz541m/1/ or this: https://jsfiddle.net/7uyz541m/2/ ?
You can set the
areaOpacity
to zero to remove the filling of a series. The difference between the first and second jsfiddle link is theisstacked
value.To make both areas the "same" color but the line a different color you need to add a dummy column like here: https://jsfiddle.net/7uyz541m/3