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.
https://d3js.org/d3.v4.min.js
https://unpkg.com/jeezy/lib/jeezy.min.js
https://unpkg.com/d3-marcon/build/d3-marcon.min.js