Similar to line charts, area charts are great for displaying temporal data. Whether you’re displaying a single set of data or multiple sets using an overlapping or stacked layout, D3 provides APIs to make the process straightforward. This lesson walks you through creating multiple layouts easily.
Minor thing, but can just do .curve(d3.curveCatmullRom)
since the default alpha
is 0.5
.