Fork of Choropleth Map
✓ Published0🌍 Public
This choropleth map visualizes global economies by color-coding countries according to income group data from the World Atlas 50m dataset. Viewers can zoom and pan the map using the zoom event handler, while hovering over a country highlights it in red and reveals its name and economy classification in a tooltip. The map is rendered as SVG paths using d3.geoPath with a Natural Earth projection, with a color legend built via the custom colorLegend component that uses d3.scaleOrdinal and a spectral color scheme.
AI-generated descriptionMIT Licensed