Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive

Public visualization

Interactive

0 stars0🌍 Public
ZZhi Guangda
Last edited Jul 24, 2019
Created on Jul 24, 2019

A world choropleth map colors countries by economic classification, using a spectral ordinal color scale. Users can click any country to highlight it and dim all others, or click again to clear the selection; clicking legend swatches filters the map to a specific category. The visualization uses d3.geoNaturalEarth1 with d3.geoPath to render TopoJSON country outlines from the world-atlas dataset, d3.scaleOrdinal for coloring, and d3.zoom for panning and scaling. An SVG legend, built with custom functions, adds interactive filtering and selection feedback.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed