Skip to main content
100%

Happiness Factors Comparison by Country

✓ Published0🌍 Public
Aaishwarya8615
Last edited Nov 6, 2019
Created on Nov 6, 2019

This interactive scatterplot compares happiness factors across countries, using data from the World Happiness Report. Users select X and Y axes from dropdown menus to explore relationships between indicators like GDP, education, and employment, with each point colored by indicator category. A clickable legend filters the view to highlight specific factors, while tooltips reveal exact values. Built with D3 v4, it uses SVG animations, `scaleOrdinal` for coloring, and transition-based rendering to smoothly update positions when axes change.

AI-generated description

The data is from the The World Happiness Report that uses survey data, demographic information and statistical analysis to rank 156 nations according to the happiness of their people. https://www.kaggle.com/arielyeung/world-happiness-data https://gist.github.com/mkt-ds/640984c80835e2823c1b0f5c9a3fabe6

A country’s overall happiness score is a composite of different factors collected in an annual worldwide survey, including GDP per capita School years Sustainable economic development Employement Rate Health expenditure Government effectiveness Female MPS Control of corruption

What factors contributes to happiness for different countries is interesting. For example more school years increases happiness in certain countries, it's probably correlated with more salaries when a person studies more. I need to create another visual to show the relationship between each factors for each country.

Overall, Finland, Denmark, Norway, Netherlands, Iceland are the happiest countries.

MIT Licensed

Similar vizzes