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