score:0

Accepted answer

The way I understand your problem, date is just a key in an array of image paths. The following code changes the fill attribute of each circle, in function of its index i in the data. It should be a good start to solve your problem.

var images = ["img1.png","img2.png","img3.png"];

d3.selectAll("circle")
   .data(images)
     .enter()
   .style("fill",function(d,i){ return "url(" + d + ")"; });

This is a good reading regarding the use of d3 enter and exit


Related Query

More Query from same tag