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 descriptionDescription: "The World Happiness Report is a landmark survey of the state of global happiness. The first report was published in 2012, the second in 2013, the third in 2015, and the fourth in the 2016 Update. The World Happiness 2017, which ranks 155 countries by their happiness levels, was released at the United Nations at an event celebrating International Day of Happiness on March 20th. The report continues to gain global recognition as governments, organizations and civil society increasingly use happiness indicators to inform their policy-making decisions. Leading experts across fields – economics, psychology, survey analysis, national statistics, health, public policy and more – describe how measurements of well-being can be used effectively to assess the progress of nations. The reports review the state of happiness in the world today and show how the new science of happiness explains personal and national variations in happiness." - Taken from Kaggle
I have decided to use the 2019 dataset because that was the most recent data available.
URL - 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 |