🌍 Public
Viewing a saved revision (read-only)
b0b0d7d679b24f76873ad3d15468ddc7
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