O'Reilly logo
  • ouyang qianba thinks this is interesting:

var x_axis = d3.svg.axis().scale(x_scale);

From

Cover of Getting Started with D3

Note

d3 v4: var x_axis = d3.axisBottom(x_scale)