This block uses SVG's linearGradient
element and D3 selections to create a linear gradient. Rather than having just two colors, this gradient uses a six-color rainbow spectrum.
Drag the circles to change the gradient's orientation.
https://d3js.org/d3.v4.min.js