Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

NY Motorcycle Crashes Loading Data

Public visualization

Viewing a saved revision (read-only)

b17ac93b68cf471288ce38c9d4d7e4a7

NY Motorcycle Crashes Loading Data

0 stars0🌍 Public
JJose Morales
Last edited Sep 3, 2025
Created on Sep 3, 2025
Forked from Loading Data

This example demonstrates loading and displaying a subset of NYC motorcycle crash data. The visualization shows the raw dataset as a JSON-formatted list of objects, with each row containing attributes like vehicle make, model, driver sex, and contributing factors. Initially, the view displays “LOADING” before fetching the CSV file and parsing it using `d3.csvParse`. Once loaded, the code converts the `UNIQUE_ID` field to numeric values and re-renders the data via `d3.select` and `join` operations.

AI-generated description

The dataset shown here is a subset of the "Motor Vehicle Collisions - Vehicles" dataset from the NYC OpenData website (https://data.cityofnewyork.us/Public-Safety/Motor-Vehicle-Collisions-Vehicles/bm4k-52h4/about_data). To create this subset, I filtered the entire dataset (roughly 4.42 million rows) to only show motorcycles involved in crashes. Additionally, I removed any entries which did not have a vehicle model listed, which brought down the total number of entries to 223. There were more columns included in the dataset, but listed here: