Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fatal Police Shootings Data Summary

Public visualization

Viewing a saved revision (read-only)

6a70b97fb5c448a7a2d187606ef7f7a9

Fatal Police Shootings Data Summary

0 stars1🌍 Public
MMartin Blatz
Last edited Oct 8, 2020
Created on Sep 11, 2020

This D3.js example summarizes a Washington Post dataset on fatal police shootings from 2015 to 2020, showing file size, row count, and column count via a large `pre` element. It uses the `d3.csv` function to fetch and parse the CSV, then `d3.csvFormat` to measure the raw text length, displaying three key statistics. The code also includes commented alternatives using `fetch` with async/await and a nested Promise chain.

AI-generated description

A program that loads and parses some CSV fatal police shooting data collected by the Washington Post on fatal police shootings in the US from 2015-present (Sept 9, 2020). The original data is updated in near real time and so may differ slightly from the data contained in this gist.

Additional information can be found at the study web page

Possible tasks and questions to explore:

  • Do fatal police shootings occur more often in certain parts of the country?
  • What is the demographic breakdown of fatal police shootings in the US, and how does it compare to the demographics of the entire US population?
  • Are fatal police shootings becoming more or less common?

Columns of particular interest: Categorical:

  • armed
  • gender
  • race
  • location (city and state, latitude/longitude)
  • flee
  • age (used as categorical groups)

ordinal:

  • date