Skip to main content
100%

A9 World Choropleth

✓ Published0🌍 Public
NNoah C.
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from A9 Choropleth

This choropleth displays world happiness scores for 2022, coloring each country on a blue sequential scale and revealing its name and score on hover via SVG `<title>` tooltips. It loads CSV data and TopoJSON world geometry, then renders paths with `d3.geoPath()` and a Mercator projection. The implementation uses D3 v7, TopoJSON, and d3-legend, with color mapping from `d3.scaleSequential` and `d3.interpolateBlues`.

AI-generated description

Choropleth visualization of world happiness ratings by county made with D3. Reference: D3.js Choropleth Map Code Walkthrough and D3 Graph Gallery

Hover over a country to see its name and happiness score. Please fullscreen to see in detail.

MIT Licensed

Similar vizzes