Loading Data
✓ Published0🌍 Public
This example visualizes GDP per capita trends for ten African countries from 2014 to 2023 using a multi-line chart. It loads data from the World Bank API via `fetch`, then renders time-series paths with the `d3.line` generator, and scales the axes with `scaleTime` and `scaleLinear`. A color-coded legend identifies each country, while the axes and title adopt a crimson palette. The visualization builds its SVG dynamically with `select`, `join`, and `axisBottom`/`axisLeft`, updating on container resize.
AI-generated descriptionMIT Licensed