Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

NYC Crashes Interactive Sparkline

Public visualization

Viewing a saved revision (read-only)

8d2c487ede4d4a1fac4d9cd1828a4c4d

NYC Crashes Interactive Sparkline

0 stars0🌍 Public
JJose Morales
Last edited Nov 6, 2025
Created on Nov 6, 2025

This interactive sparkline visualizes monthly motor vehicle crashes in New York City from 2012 to 2025, using data from a CSV file. A thick purple line with a light area fill shows the trend, while hovering reveals a tooltip displaying the exact crash count and month via a bisector-based lookup. Built with D3.js, it uses `scaleTime`, `scaleLinear`, `line`, and `area` generators, plus `pointer` events for interactive hover feedback on the SVG canvas.

AI-generated description