Skip to main content
100%

Choropleth Map

✓ Published1🌍 Public
VVamsiYandapalli
Last edited Dec 9, 2021
Created on Dec 9, 2021

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 description
MIT Licensed

Similar vizzes