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 lorenzopub's block: Stacked-to-Grouped Police Killings
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js