Skip to main content
Public

Share visualization

Loading preview…

NYPD Complaints - Complainant and Officer Ethnicity

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

NYPD Complaints - Complainant and Officer Ethnicity

0
RRudy Shayganfar
Last edited Sep 23, 2020
Created on Sep 17, 2020

This stacked bar chart visualizes the number of complaints filed against NYPD officers, segmented by complainant ethnicity and colored by the officer's ethnicity. Built with the Vega-Lite API, it uses the `.markBar()` method to encode the complainant ethnicity on the x-axis, the count of complaints on the y-axis, and the officer ethnicity as the color channel. The visualization loads its data from a CSV file hosted on GitHub, originally sourced from ProPublica’s dataset of over 12,000 civilian complaints, and customizes axis styling via a config object for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.

The stacked bar chart above depicts the number of complaints based on complainant ethnicity. The different colors indicate the ethnicity of the officer referenced in the complaint (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.

Comments

Sign in to join the discussion.

MIT Licensed