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.
linearGradient
Drag the circles to change the gradient’s orientation.