Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 Choropleth Map

Public visualization

Viewing a saved revision (read-only)

4636210384454952bf6e13000e6211e9

d3 Choropleth Map

0 stars1🌍 Public
NNilla
Last edited Mar 28, 2019
Created on Mar 28, 2019
Forked from d3 Choropleth Map

This choropleth map colors countries by economy using a spectral ordinal scale, with hover highlighting and zoom/pan via d3.zoom. It loads TopoJSON geographic data and CSV attributes through Promise.all, then renders paths with d3.geoPath and a Natural Earth projection. A custom color legend displays the ordinal scale’s domain as circles with labels, while the map’s SVG elements are styled with CSS.

AI-generated description