🌍 Public
Viewing a saved revision (read-only)
8f7e48217aba4b3f9bc5f9583acad2a1
v5 - 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 descriptionthis is line graph of the crashes dataset to show the seasonality of the crashes data