Skip to main content
100%

Loading Data

✓ Published0🌍 Public
BBismark Kofi Owusu Sarfo
Last edited Sep 2, 2025
Created on Sep 2, 2025

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

Similar vizzes