Skip to main content
100%

Fatal Police Shootings stacked Bar

✓ Published0🌍 Public
Mmandadi1999
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from D3 Starter

This stacked bar chart visualizes fatal police shootings by race, with each bar segmented by the victim's fleeing behavior. The chart uses Vega-Lite's API to encode race on the x-axis, count on the y-axis, and flee status as color. The data is loaded via D3's `csv` function from a GitHub Gist, and the visualization is rendered using the `vega-lite-api` with React and a custom tooltip handler.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes