Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Map with Selectable Countries

Public visualization

Viewing a saved revision (read-only)

9956041e49e74e47b70cf2cc72d6f5fd

Fork of Map with Selectable Countries

0 stars0🌍 Public
Llawrynowiczgeorge@gmail.com
Last edited Jan 19, 2026
Created on Jan 19, 2026

This interactive choropleth map lets viewers click countries to select or deselect them, dimming unselected nations and highlighting the chosen one while fading the sphere background. The map and a color legend for economic groups update together, with the legend also supporting selection. Built with D3 v5, it uses `d3.geoNaturalEarth1` and `d3.geoPath` to render GeoJSON from the World Atlas TopoJSON, while `d3.zoom` enables panning and zooming. The legend and map are composed via D3 data joins and `d3.scaleOrdinal` with a spectral color scheme.

AI-generated description