Choropleth World Map w/ D3.js
✓ Published1🌍 Public
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 descriptionMIT Licensed