All examples By author By category About

emeeks

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

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.