This example shows how to split a rectangle into a stack using d3.layout.stack. This is example 12 from the screencast Splitting Charts.
MIT License