block by devgru a58f1aa28e8723f90979800e1ba74923

Gradient Encoding

Full Screen

This variation of a line chart demonstrates how to use a linear gradient as a quantitative color encoding redundant with y-position. The gradient units are defined as userSpaceOnUse, such that the gradient stops can be positioned explicitly rather than based on the line’s bounding box.

index.html

data.tsv