block by emeeks 41819f54f84cdd89d999

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

Full Screen

This is the code for Chapter 2, Figure 17 from D3.js in Action that creates rectangles with height based on the data bound to the selection. Rectangles are scaled to fit the small drawing area by utilizing d3.scale.linear().

index.html