Activity7_Question2
✓ Published0🌍 Public
This chart visualizes GDP growth rates over time as a stacked area chart, with each country represented by a distinct colored layer. The data is loaded from a CSV file using `d3.csv` and processed with `d3.groups` to organize values by year, then stacked using `d3.stack()`. The visualization uses D3 v7’s scale functions (`scaleLinear`, `scaleOrdinal`) and the `d3.area` generator to render smooth SVG paths, with axes drawn via `d3.axisLeft` and `d3.axisBottom`. A legend manually constructed with SVG rectangles and text identifies each country.
AI-generated descriptionMIT Licensed