Skip to main content
100%

Gapminder Life Expectancy Data

✓ Published0🌍 Public
Sskasliwal@wpi.edu
Last edited Aug 31, 2025
Created on Aug 31, 2025
Forked from Loading Data

This example loads a Gapminder life expectancy dataset in wide format and displays the raw parsed data as a JSON preview. It fetches `data.csv`, converts year columns to numbers, and handles values with a "k" suffix by multiplying by 1000. The visualization uses D3 v7's `csvParse` and `select` to manage asynchronous data loading and rendering. It demonstrates a data-loading workflow where the state tracks loading status and updates the view accordingly, without yet showing a chart.

AI-generated description

Gapminder Life Expectancy This dataset contains life expectancy data at birth for countries from 1800 to 2100. Sourced from the Gapminder Foundation, this data is also in a "wide" format, with years as columns. It's a classic example for creating visualizations that show how life expectancy has changed globally over a long time span.

Source URL: https://www.gapminder.org/data/

Attribute Descriptions country: Categorical (The name of the country).

Years (1800 through 2100): Quantitative and Temporal (The life expectancy value for each corresponding year).

MIT Licensed

Similar vizzes