Skip to main content
100%

6. Interactive Components

✓ Published0🌍 Public
YYuren Dong
Last edited Dec 13, 2021
Created on Dec 11, 2021
Forked from D3 Starter

This interactive map of New York City visualizes 2021 car collision statistics by borough, with color encoding for total accidents and hover effects revealing detailed metrics like severe case rates and leading causes. The visualization uses D3 v6 (with legacy v3 and v4 scripts) to render SVG paths from a GeoJSON file, employing a Mercator projection via `d3.geo` and `d3.geoPath`. A sequential color scale (`d3.scaleSequential`) maps collision counts, while mouseover events trigger text updates and dynamic styling changes. The design includes hover-triggered highlighting, animated text transitions, and a color legend axis.

AI-generated description

5702

MIT Licensed

Similar vizzes