block by harrystevens 7e3ec1a6722a153a5d102b6c42f4501d

Stacked Bar Update Pattern

Full Screen

Use D3’s general update pattern to animate stacked bar chart transitions.

Data shown here is in this format:

name a b c d e f sum
Ann 8 6 3 6 1 1 25
Bob 1 9 10 1 5 8 34
Jean 3 4 3 2 1 8 21
Chuck 2 3 5 8 5 9 32
Denise 9 10 3 8 8 8 46
Eric 3 9 2 4 10 4 32
Frida 6 6 3 7 10 6 38

Axis styling from this block. Colors from ColorBrewer.

index.html