Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

WHR2024

Public visualization

WHR2024

0 stars0🌍 Public
XXiaojun
Last edited Sep 24, 2025
Created on Sep 24, 2025

This scatter plot displays the relationship between GDP per capita and happiness scores for countries in the 2024 World Happiness Report. Each black circle represents a country, positioned by its logged GDP contribution and overall ladder score. Built with React and D3 v7, the visualization uses `scaleLinear` to map data coordinates and idempotent `select` operations to render circles and axes. The SVG rendering handles axis labels and margins through helper modules.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed