Skip to main content
100%

Fork of D3 Course Code Along - Choropleth Map

✓ Published0🌍 Public
NNandhakumaar T
Last edited Sep 1, 2022
Created on Sep 1, 2022

A choropleth map of world countries colored by income group, rendered with a Natural Earth projection. The visualization loads world-atlas TopoJSON data via `d3.json`, projects it with `d3.geoPath`, and colors each country using a sequential red scheme from `d3.schemeReds` based on a categorical `d3.scaleOrdinal` scale. An interactive legend built with custom SVG `circle` and `text` elements shows the color categories. The map supports zooming via `d3.zoom` and includes hover effects that highlight countries.

AI-generated description
MIT Licensed

Similar vizzes