Updates D3 to 3.5.2. Fixes #849

As per #849, the version of D3 included is pretty old. I don't know if there's any reason to use an older dependency, but all the tests still pass if it's updated.