Skip to main content
100%

Correlation between stop and search type and ethnicity

✓ Published0🌍 Public
BBizmundo
Last edited Sep 21, 2019
Created on Sep 20, 2019

This visualization shows the proportion of stop and search types—person, vehicle, or both—for each ethnic group in Kent, UK police data from 2007-2009. A grouped bar chart displays these percentages, revealing that the distribution of search types is similar across racial categories. The code uses the vega-lite-api and vega-lite libraries, with data loading through `d3.csv` from a remote gist, then computes ratios in JavaScript before rendering with Vega-Lite's mark-bar encoding.

AI-generated description

This chart is a visualization of the Kent (UK) police stop and search data. This chart shows that there is no disparity between the proportions of the stop and search type by race. Creating this chart helped me become more familiar with vega-lite API data and manipulation using javaScript.

MIT Licensed

Similar vizzes