World Happiness Scores by Country
This example visualizes global nuclear explosion data on a world map, with each detonation represented by a colored circle whose size corresponds to yield magnitude. The map uses D3’s geoNaturalEarth1 projection and geoPath to render landmasses, graticules, and country borders from TopoJSON data. A scaleOrdinal color scale assigns distinct hues per country, while a scaleSqrt maps yield values to circle radii. React manages hover interactions, dimming non-hovered points via opacity and filtering the top layer to highlight selected countries. The legend, built with React components, supports interactive filtering of the dataset.
AI-generated descriptionA scatter plot of the Happiness by Country Data
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.