Choropleth Map
✓ Published1🌍 Public
This choropleth map visualizes countries by economic type, with a color legend and zoomable navigation. Built with D3 v5, it uses `geoNaturalEarth1` projection, `geoPath`, and TopoJSON data from the world-atlas package to render SVG country paths. A categorical `scaleOrdinal` color scale maps economic classifications to the Spectral palette. Hovering a country reveals its name and economy in a tooltip, while `d3.zoom` enables pan and zoom. The legend is generated by a custom `colorLegend` component.
AI-generated descriptionMIT Licensed