Happiness Factors Comparison by Country
This interactive scatter plot explores the relationship between two selected happiness factors across countries, using data from the World Happiness Report. Users can choose any two factors from dropdown menus, and each dot represents a country. The visualization employs D3.js v4 and SVG with animated transitions, showing how factors like GDP per capita and school years correlate with happiness scores. A color-coded legend highlights specific factors, and hovering over a dot reveals the country’s name and its values.
AI-generated descriptionThe 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.
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.