Skip to main content
100%

Map with Selectable Countries

✓ Published0🌍 Public
Wwenleicao
Last edited Oct 18, 2019
Created on Oct 18, 2019

This interactive map colors countries by economic classification using a spectral color scale. Users can click a country to highlight it while dimming all others, with the legend providing a color-coded key that is also clickable for filtering. The visualization uses D3 v5 with `geoNaturalEarth1` projection, `geoPath` for rendering, TopoJSON data from the World Atlas, and an SVG canvas. Zoom and pan functionality is implemented via D3's `zoom` event, with country coordinates sourced from TSV data.

AI-generated description
MIT Licensed

Similar vizzes