Choropleth Map
✓ Published0🌍 Public
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 descriptionMIT Licensed