add d3 dependency.