Stacked Area via Nest
✓ Published0🌍 Public
Mmbostock
Last edited Aug 7, 2019
Created on Jun 29, 2012
This stacked area chart visualizes how three named groups (Group1, Group2, Group3) contribute to a total value over a series of dates in April 2012. Using D3 v3 and SVG rendering, the code nests the CSV data by group key and applies a stack layout to compute the cumulative y-offsets for each layer. The cardinal-interpolated areas are drawn as separate paths, colored via a categorical scale, with time-based x-axis and linear y-axis scales.
AI-generated descriptiongpl-3.0 Licensed