An implementation in D3 of Figure 5-13 "Interactive stacked bar chart in Protovis" in "Visualize This" by Nathan Yau.
The implementation of this chart is quite like the one in the book, as both Protovis and D3 were created by Mike Bostock.
https://d3js.org/d3.v4.min.js