Update d3

This should be the complete d3 api.