Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fatal Police Shootings stacked Bar

Public visualization

Viewing a saved revision (read-only)

fa0c91e6a77948cc9d9cd1fc914ae2b8

Fatal Police Shootings stacked Bar

0 stars0🌍 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.