Skip to main content
100%

DC Crime Stack Chart

✓ Published0🌍 Public
Eeherchen
Last edited Jul 13, 2019
Created on Jul 11, 2019

This interactive stacked bar chart visualizes 2017 crime counts by offense type across Washington, D.C. police service areas (PSAs). Built with D3.js (v3), the visualization uses a stacked layout to aggregate five offense categories—such as burglary and motor vehicle theft—along a horizontal axis, with PSA segments stacked vertically. Users can hover over bars to see tooltips with exact counts via d3-tip, or hover over the color legend to highlight specific crime types while dimming others. The chart also includes a dropdown to switch between yearly datasets.

AI-generated description

Stacked bar chart showing estimated religion breakdown.

Interactions:

  • Hover over the bars for tool tips.
  • Hover over the legend to highlight religions.

Based on an example from the tutorial Splitting Charts. Derived from the following examples published on bl.ocks.org:

Estimated 2010 religion breakdown of the most populous 20 countries.

Data is from The Global Religious Landscape by Pew Research, generated using this processing script.

TODO: Upgrade dependencies to latest D3 & friends.

MIT Licensed

Similar vizzes