Choropleth Map
✓ Published1🌍 Public
This choropleth map colors countries by income group using an ordinal color scale built with `d3.scaleOrdinal` and `schemeSpectral`. It renders geographic boundaries with `d3.geoPath` and a Natural Earth projection, with country data sourced from the world-atlas TopoJSON dataset. Users can pan and zoom via `d3.zoom`, and hovering highlights individual countries. A custom `colorLegend` component displays the categorical color scale as an SVG legend, while tooltips show each country’s name and income group.
AI-generated descriptionMIT Licensed