pass data into d3