Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

NYC Arrest over year

Public visualization

Viewing a saved revision (read-only)

cb2fb7d3f5654324aa2b62f643e47bd2

NYC Arrest over year

0 stars0🌍 Public
JJasper129
Last edited Dec 15, 2022
Created on Dec 15, 2022
Forked from HTML Starter

A month-by-month bar chart shows the daily number of arrests in New York City from January through September 2022. Clicking a month button triggers a D3 transition that re-scales the x- and y-axes and updates the bar heights accordingly. The visualization loads CSV data from a GitHub repository and uses D3 v7’s `scaleBand`, `scaleLinear`, and `transition` APIs to animate changes smoothly in an SVG.

AI-generated description

We collect the arrest data in NYC from 2022.01.01 to 2022.9.30. This chart offers us daily-based data in different months.

By clicking the button at the top of the page, we can see the number of crimes recorded each day of that month, which offers us a easy way to find the seasonal trends or temporal pattern of crime in New York City.