mbostock
This example is out-of-date; I prefer this newer histogram example that places the tick marks between bars. However, the implementation still stands as an example of the reusable chart module pattern.
https://d3js.org/d3.v3.min.js