Skip to main content
100%

v6 - Crash Graph

✓ Published0🌍 Public
Ssjpeno@wpi.edu
Last edited Nov 27, 2024
Created on Nov 27, 2024
Forked from v5 - Crash Graph

This visualization is a line graph showing the number of crashes over time, binned by month to reveal seasonality. It plots the total crash count against monthly timestamps, with interactive checkboxes that let the user toggle the visibility of three crash types: motor vehicle, pedestrian, and bicycle. The chart dynamically updates the line and y-axis scale based on the selection, and data points are highlighted on hover. The code uses d3’s `scaleTime`, `scaleLinear`, `bin`, and `line` APIs to process and render the data from a CSV file.

AI-generated description

this is line graph of the crashes dataset to show the seasonality of the crashes data

MIT Licensed

Similar vizzes