Update d3.js

A bunch of new versions have come out, time to upgrade.
Fix incorrectly spaced ticks in line graphs.

For some reason d3 incorrectly calculates sub-ticks at certain
intervals, I haven't totally figured it out yet though.