NYPD Complaints - Age of Officer
This stacked bar chart shows the number of civilian complaints against NYPD officers by officer age at the time of incident, with colors distinguishing complaint types. The visualization uses the vega-lite-api library, with D3’s `csv` loader to fetch data from a gist containing over 12,000 records originally sourced from ProPublica and New York City’s Civilian Complaint Review Board. The chart encodes age on the x-axis, complaint count on the y-axis, and complaint type via color. The code implements automatic sizing and tooltips through vega-tooltip, with a custom config adjusting axis ticks and label styling.
AI-generated descriptionA 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.