I draw many circles with some loops via d3.js
var line = d3.svg.line()
var r = 1
var svg = d3.select("body").append("svg:svg")
.attr("width", 1000)
.attr("height",1000)
for ( var x=0; x< 1000 ; x+=3*r)
{
for ( var y=0; y< 1000 ; y+=3*r)
{
svg.append("circle")
.attr("cx", x)
.attr("cy", y)
.attr("r", r)
}
}
It seems the browser refreshes the display only after the loops have finished. Then all objects appear at once. How can I force a refresh after every element, so I can watch the progress of the image?
Thanks