🌍 Public
Viewing a saved revision (read-only)
56a83af2add74304abe496f25562a5df
World Happiness Dataset Schnair
This example displays the raw World Happiness Report 2019 data in a simple text format. The visualization initially loads a CSV file containing happiness scores and related metrics for various countries, parsing the data into a structured format. It uses the d3.csvParse API to read the data, then displays the parsed JSON representation of each country's record. The code demonstrates a basic data-loading workflow with d3.v7, showing how fetched data transitions from an undefined state to a formatted output using select and join methods.
AI-generated descriptionURL - https://www.kaggle.com/datasets/unsdsn/world-happiness
| Atribute | Data Type |
|---|---|
| Overall rank | quantitative |
| Country or region | categorical |
| Score | quantitative |
| GDP per capita | quantitative |
| Social support | quantitative |
| Healthy life expectancy | quantitative |
| Freedom to make life choices | quantitative |
| Generosity | quantitative |
| Perceptions of corruption | quantitative |