Skip to main content
100%

Choropleth World Map w/ D3.js

✓ Published1🌍 Public
Ppeterjchan
Last edited Apr 4, 2020
Created on Apr 4, 2020

A choropleth world map colors countries by income group using a spectral color scale, with a legend showing the categorical mapping. The visualization is built with D3.js v5 and rendered as SVG paths projected via `d3.geoNaturalEarth1` and `d3.geoPath`. Country boundaries come from TopoJSON data (world-atlas), enriched with income attributes from a TSV file. Zooming is supported through `d3.zoom`, and the legend’s circles and labels are generated using a reusable `colorLegend` function.

AI-generated description
MIT Licensed

Similar vizzes