After upgrading to d3.js v4.1.1, this line:
d3.layout.tree()
produces an error:
Cannot read property 'tree' of undefined
It seems like the tree layout has been removed from v4? https://github.com/d3/d3/blob/master/API.md
The examples still use the v3 API: http://bl.ocks.org/mbostock/1093025
Is the layout really gone or has it been renamed?