Skip to main content
Public

Share visualization

Loading preview…

World Happiness Scores by Population

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

World Happiness Scores by Population

1
Yyuzhang21
Last edited Oct 11, 2019
Created on Oct 11, 2019

This visualization displays world happiness scores for 156 countries, with circle size representing population and hover tooltips revealing happiness scores. Users can pan and zoom using d3.zoom. The map uses d3.geoPath with a Natural Earth projection, while population circles are sized with d3.scaleSqrt. Country boundaries come from TopoJSON data, and happiness scores originate from CSV data in the World Happiness Report. A custom sizeLegend displays population values, and color-coded countries distinguish those with missing population data.

AI-generated description

Visualizing population by country using circles on a map with world happiness score tooltip.

The area of each circle corresponds to the population of the country it represents. Once clicked it shows the happiness score.

You can also pan & zoom, and hover over each country for more information.

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.

Comments

Sign in to join the discussion.

MIT Licensed