Skip to main content
100%

d3 Choropleth Map

✓ Published1🌍 Public
NNilla
Last edited Mar 28, 2019
Created on Mar 27, 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
MIT Licensed

Similar vizzes