call d3 separately