Skip to main content
100%

Loading HDI Data

✓ Published0🌍 Public
SSpencer McAvey
Last edited Jan 19, 2023
Created on Jan 19, 2023
Forked from Loading Data

This example demonstrates a data-loading workflow for the Human Development Index dataset, which tracks metrics like life expectancy, education, and income per country from 1990 to 2021. The visualization displays the raw parsed data as JSON text in a styled `<pre>` element, showing the dataset’s structure after being fetched and processed. The code uses D3 v7’s `csvParse` to convert the CSV file retrieved via `fetch` into an array of objects, managing a loading state through a simple state-management pattern with `setState`. The data originates from a Kaggle-hosted dataset covering global development indicators.

AI-generated description

Human Development Index dataset fetched from: https://www.kaggle.com/datasets/iamsouravbanerjee/human-development-index-dataset. Describes HDI, income, education, mortality rates, life expectancy, gender inequality, emissions, labor participation rates, etc. per country and over periods of time ranging from 1990 - 2021.

MIT Licensed

Similar vizzes