Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

v6 - Crash Graph

Public visualization

Viewing a saved revision (read-only)

428b45c336d2431cad0c8d70df1dc542

v6 - Crash Graph

0 stars0🌍 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