Skip to main content
100%

Activity7_Question2

✓ Published0🌍 Public
VVidya Lakshmi Chitturi
Last edited Apr 10, 2025
Created on Apr 7, 2025
Forked from Hello VizHub

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 description
MIT Licensed

Similar vizzes