d3js workshop - circles
Three circles animate downward and expand while their fill color transitions to red, using D3's data join to bind an array of three numbers to SVG circle elements. The circles respond to mouseover by turning black and to clicks by shrinking to zero radius and fading to grey, with each transition lasting two seconds. The code uses D3 v3's `selectAll`, `data`, `enter`, and `transition` APIs with `duration` and `delay` methods. The initial positions derive from the data values multiplied by four for the x-coordinates.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/mostaphaRoudsari/'>mostaphaRoudsari</a>'s block: <a href='http://bl.ocks.org/mostaphaRoudsari/665123a242248dcde1e1451bef4069f5'>05_workshop_interactive circles solved</a>