Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Choropleth Map

Public visualization

Choropleth Map

0 stars1๐ŸŒ Public
Ccpsshan
Last edited Jul 16, 2019
Created on Jul 16, 2019
Forked from Choropleth Map

This choropleth map colors countries by economic classification using an ordinal color scale derived from `d3.scaleOrdinal` and `schemeSpectral`. The map renders with `d3.geoNaturalEarth1` projection and `d3.geoPath`, while country geometries and names come from TopoJSON and TSV data loaded via `Promise.all`. A semi-transparent legend built from `d3.scaleOrdinal` domains shows color categories, and `d3.zoom` enables panning and zooming over the SVG. Hovering highlights individual countries in red.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed