🌍 Public
Viewing a saved revision (read-only)
fa0c91e6a77948cc9d9cd1fc914ae2b8
Fatal Police Shootings stacked Bar
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 descriptionA demonstration of how to start using D3 version 6.