Sparkline Crash data
✓ Published0🌍 Public
JJose Morales
Last edited Nov 6, 2025
Created on Nov 6, 2025
Forked from NYC Interactive Crash Bar Chart with React & D3
This interactive sparkline chart displays monthly crash counts from 2012 to 2025, rendered as a filled area line graph. The visualization presents the full time series and highlights the monthly value on hover, updating a large text label with the exact date and crash count. Built with React and D3.js, the code uses `d3.scaleTime`, `d3.scaleLinear`, `d3.line`, `d3.area`, and `d3.bisector` to map data, draw the chart, and handle pointer interactions. The data originates from a local CSV file.
AI-generated descriptionCrash Data Sparkline Visualization
A D3.js visualization showing monthly crash data as an interactive sparkline chart with hover details.
MIT Licensed