Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

v5 - Crash Graph

Public visualization

Viewing a saved revision (read-only)

8f7e48217aba4b3f9bc5f9583acad2a1

v5 - Crash Graph

0 stars1🌍 Public
Ssjpeno@wpi.edu
Last edited Nov 18, 2024
Created on Nov 17, 2024
Forked from v4 - Crash Graph

This line chart displays the seasonality of crash counts over time, with data from the smallcrashcopy.csv file. It uses d3.bin and timeMonth.range to aggregate crashes by month, then plots them with d3.line and scales from d3.scaleTime and d3.scaleLinear. The visualization supports toggling visibility for three mode types (mv, ped, bike) via checkboxes, which recomputes the total counts and dynamically updates the y-axis with axisLeft. A gray background rectangle and labeled axes for month and crash counts frame the chart.

AI-generated description

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