Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Viewing a saved revision (read-only)

e1fd795186c444d6926c8595702e0c49

Fork of Choropleth Map

0 stars0🌍 Public
Xxyang3672
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from Choropleth Map

A choropleth map visualizes national happiness scores by coloring countries according to their economy classification from the World Happiness Report CSV. The map uses a natural Earth projection via `d3.geoPath` and `d3.geoNaturalEarth1`, with color mapping through `d3.scaleOrdinal` and the spectral scheme. A custom legend component shows color categories, while zoom functionality is implemented with `d3.zoom`. Countries display tooltips with their name and economy type, and hover states change fill color to red.

AI-generated description