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...
dm-p
2 years agoSuper User
Hi Anonymous,
You can define a gradient object as a signal and refer to this in the fill encoding. Please refer to this StackOverflow answer for an example.
Regards,
Daniel