Forum Discussion
Anonymous
2 years agoNot applicable
Deneb Vega - Gradient based on values of a specific column instead of fixed offsets
Hi everyone! I'm trying to create an area chart with gradient on Deneb with Vega. The idea is to set the colors of the gradient based on the values of my column called "percentage_score". This pa...
giammariam
2 years agoSolution Sage
Anonymous for your gradient stops, see if something like the following is closer to what you're after:
"stops": [
{"offset": 0, "color": "red"},
{"offset": 0.25, "color": "red"},
{"offset": 0.99, "color": "yellow"},
{"offset": 1, "color": "green"}
]