This is the code for Chapter 2, Figure 21 from D3.js in Action loading data from an external CSV, measuring one of the fields of that data using d3.max, and then creating a scale based on that measurement to draw the data as a bar chart.