Skip to main content
100%

Fork of NYPD Complaints - Age of Officer

✓ Published0🌍 Public
EEmin
Last edited Oct 6, 2023
Created on Oct 6, 2023

This example is a stacked bar chart of over 12,000 civilian complaints against NYC police officers, broken down by the officer’s age at the incident. Colored segments distinguish the type of complaint (e.g., force, discourtesy), with the total counts on the vertical axis. It renders using the Vega-Lite API and D3.js to fetch data from a CSV, map the fields, and configure the chart’s appearance, including the dark axis labels and tooltips. The dataset originates from ProPublica and the NYC Civilian Complaint Review Board.

AI-generated description

A visualization constructed using the vega-lite-api.

The stacked bar chart above depicts the number of complaints based on officer age. The different colors indicate what type of complaint was made (refer to legend on right of chart).

This is based on a database of more than 12,000 complaints filed by civilians against NYC police officers. The data is available on ProPublica. The original data source is the New York City's Civilian Complaint Review Board. Each row of the data contains one complaint filed. Each complaint includes (but is not limited to) the following: officer first and last name, officer age, officer rank at time of incident, officer current rank, date of incident, and ethnicity of officer. The data contains similar information for each complainant, as well as a description of the offense and whether the complaint was substantiated.

Data is ported from NYPD Complaints dataset.

MIT Licensed

Similar vizzes