Choropleth Map
✓ Published2🌍 Public
A choropleth map colors countries by income group using a sequential color scale from `d3.scaleOrdinal` and `d3.schemeSpectral`. The visualization renders with `d3.geoPath` and a natural Earth projection, drawing geographic features from TopoJSON data loaded via `d3.json` and `d3.tsv`. Pan and zoom are enabled through `d3.zoom`, and a custom legend component built with SVG elements displays the color scale. Hovering highlights individual countries, while tooltips show country names and income group values.
AI-generated descriptionD3 course follow along.
MIT Licensed