Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

US Crime Rate Map

Public visualization

US Crime Rate Map

0 stars1🌍 Public
Sshreshnaanugu@gmail.com
Last edited Nov 2, 2025
Created on Nov 2, 2025

A choropleth map of the United States displays per-state crime rates using a sequential color scale from light pink to dark red. Hovering over a state highlights its border and reveals a tooltip with the state name and crime rate. The visualization uses D3 v7 and topojson to load US Atlas GeoJSON data, projecting it with `d3.geoAlbersUsa` and rendering paths via `d3.geoPath`. Crime values are mapped to colors using `d3.scaleQuantize`, with mouse events and a tooltip div providing interaction.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed