🌍 Public
Viewing a saved revision (read-only)
c0e3b7a0972e47f4b1c193ac6570767d
NYC Crash Bar Chart with React & D3
This bar chart visualizes the number of vehicle collisions in New York City across the 24 hours of a day, breaking down each hour's total into stacked segments for injuries, deaths, and other crashes. The chart uses React to manage the SVG and window resizing, while D3's `scaleLinear`, `axisBottom`, and `stack` APIs handle the data scaling, axes, and stacked bar construction. Data is loaded from a local CSV file.
AI-generated description