Forgot about this. The d3-jetpack from Gregor Aisch makes some of the more tedious tasks in d3.js a bit shorter and intuitive.