This variation of a line chart is taken from the example demonstrated by Mike Bostock where the gradient for the line varied. In this example the gradient is applied to the area fill instead.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js