inject d3 dependency