Map with Selectable Countries
✓ Published0🌍 Public
This map visualizes world countries colored by economic classification using a categorical color scale. Clicking a country highlights it while dimming all others, and clicking again deselects it. The map uses d3.geoNaturalEarth1 projection with d3.geoPath to render SVG paths from TopoJSON world-atlas data, while d3.zoom enables panning and zooming. A color legend with clickable swatches filters the map, and the visualization updates reactively through D3 data joins.
AI-generated descriptionMIT Licensed