Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

NYC Crashes Interactive Sparkline

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed