Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

NYC Motor Crashes Exploratory Analysis

Public visualization

Viewing a saved revision (read-only)

71845e3c3a4844bb909d183150d1b807

NYC Motor Crashes Exploratory Analysis

0 stars1🌍 Public
Mmtz2110
Last edited Dec 12, 2021
Created on Dec 8, 2021
Forked from HTML Starter

This interactive visualization explores NYC motor vehicle crash counts by hour, with buttons to filter results by day of the week or view the overall total. It renders animated SVG bar charts using D3 v7, transitioning axes and bar heights over two seconds when a new day is selected. The data comes from a remote CSV of 2020 collision statistics, parsed with d3.csv. The code dynamically updates scales, axes, and bar positions via d3.scaleBand, d3.scaleLinear, and selection joins with transition.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.