Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fatal Police Shootings stacked Bar

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed