Skip to main content
100%

Fork of Map

✓ Published0🌍 Public
Eeeshani.boyapati@gmail.com
Last edited Apr 12, 2026
Created on Apr 12, 2026
Forked from Map

This choropleth shows global crime rates by country, with a pink-to-purple sequential color scale indicating values from 0 to 50. The map uses the Natural Earth projection via `d3.geoNaturalEarth1` and renders country boundaries as SVG paths from the world-atlas TopoJSON dataset. A hardcoded `Map` object supplies crime values for a few nations (e.g., USA, India, China), which are mapped to fill colors using `d3.scaleSequential` with `d3.interpolateRdPu`. Interactive tooltips display each country’s crime rate or "No Data" on hover, driven by `d3.geoPath` and D3’s event listeners.

AI-generated description
MIT Licensed

Similar vizzes