Skip to main content
100%

Map with Selectable Countries

✓ Published0🌍 Public
Llynz09
Last edited Oct 22, 2020
Created on Oct 22, 2020
Forked from Hello VizHub

This interactive map displays global economic classifications by country using a color-coded ordinal scale. Clicking a country highlights it, dims all others, and clicking the same country again deselects it; the color legend also supports filtering by category. The visualization uses d3.geoNaturalEarth1 and d3.geoPath to render World Atlas TopoJSON data as SVG paths, with d3.zoom enabling pan and zoom. Color and selection states are managed through d3.scaleOrdinal and schemeSpectral, while click events drive the selection logic.

AI-generated description
MIT Licensed

Similar vizzes