block by emeeks 03aaed39e048655daad0

Ch. 2, Fig. 13 - D3.js in Action

Full Screen

This is the code for Chapter 2, Figure 13 from D3.js in Action that creates rectangles with height based on the data bound to the selection. In this case, the rectangles all overlap each other because their X position is the same, which is now apparent because they are rendered semi-transparently.

index.html