This is the code for Chapter 3, Figure 3 from D3.js in Action which creates buttons that allow you to resize the shapes representing each team to reflect the various attributes in the data.