Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Map with Selectable Countries

Public visualization

Map with Selectable Countries

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed