Skip to main content
100%

NYC Crashes Interactive Sparkline

✓ Published0🌍 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
MIT Licensed

Similar vizzes