🌍 Public
Viewing a saved revision (read-only)
1f0a8a6ba9f54e179aa530d8c4c812a9
D3 Area Genrators
This example demonstrates two area charts generated from the same set of six data points. The D3 `d3.area()` generator creates a path with a closed shape; the first is drawn with a red fill and a default baseline of zero, while the second uses a `y0(150)` offset to position its blue shape higher on the SVG canvas. The paths are rendered as SVG elements using the `d` attribute set directly from the generator’s output, with data provided as an array of `[x, y]` coordinates.
AI-generated description