Color Gradient on Area

Learn how to apply a color gradient to an area of your graph.

We'll cover the following...

The previous example of a varying gradient on a line is neat. But hopefully, you’re already thinking: “Hang on, can’t that same thing be applied to an area fill?”

Damn! You’re catching on.

Applying a color gradient to an area fill

To do this, there are only a few things we need to change:

CSS

First of all, the ...