Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Fork of Choropleth Map

0 stars0🌍 Public
YYadanar Theint
Last edited Nov 8, 2024
Created on Nov 8, 2024
Forked from Choropleth Map

This choropleth map colors countries by their economy category using a categorical ordinal scale with a spectral color scheme. The visualization is built with D3 v5, using `geoNaturalEarth1` and `geoPath` for the map projection, with TopoJSON world data loaded from the world-atlas package. Interactive zoom is implemented via `d3.zoom`, while a custom color legend component renders ordinal categories with circles and labels. Country data is enriched by joining ISO codes from a TSV file, revealing the economy groups on hover via tooltips.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed