block by mbostock 3943967

Stacked-to-Grouped Bars

Full Screen

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. Inspired by Byron and Wattenberg.

Updated Example →

index.html