The D3 convention is to indent four spaces, then two spaces for .enter() and other functions which change the context. I've changed everything to use that style. (http://bl.ocks.org/mbostock/3943967)