🌍 Public
Viewing a saved revision (read-only)
bb35fc85fc6642dfa6d10d2e653b367e
Choropleth Map
This choropleth map colors countries by economic group, drawing from world-atlas TopoJSON and TSV data joined by country ID. The visualization renders the map with D3’s `geoNaturalEarth1` projection and `geoPath` generator, while an ordinal color scale from `schemeSpectral` assigns shades to each group. A custom color legend displays every category with circles and labels, and users can zoom and pan via D3’s `zoom` event, which updates the group’s transform. Hovering a country highlights it in red and shows its name and economy in a tooltip.
AI-generated description