All examples By author By category About

lorenzopub

Stacked-to-Grouped Police Killings with D3 v4

D3 Version 4 implementation of the stacked to grouped bar chart.

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.

Police killings data for 2015 (up to June) downloaded from FiveThirtyEight

forked from mbostock's block: Stacked-to-Grouped Bars

forked from enjalot's block: Stacked-to-Grouped Police Killings

forked from Nastasi7's block: Stacked-to-Grouped Police Killings

forked from mashehu's block: Stacked-to-Grouped Police Killings with D3 v4

forked from Thanaporn-sk's block: Stacked-to-Grouped Police Killings with D3 v4