Add d3 as a dependency.