add d3 as dependency