This takes the Stacked-to-Grouped Bars one step further by adding a sequenced transition for a normalized stacked bar chart, which shows the values for each column as a percentage rather than absolute numbers. I also added the x-axis since the scale changes for each view.
Modification of chornbaker's block: Stacked-to-Grouped Bars
Originally forked from mbostock's block: Stacked-to-Grouped Bars
Updated for D3 4.0
https://d3js.org/d3.v4.min.js