d3js workshop - circles
Three circles, bound to an array of three values, appear in an SVG canvas and animate sequentially: each circle grows, shifts downward, and turns red over two seconds. The code builds the SVG with `d3.select` and `append`, then uses the data-join pattern with `selectAll('circle')`, `data`, and `enter` to create the circles. Mouseover triggers a two-second transition that fills a circle black, while a click transitions it to grey and shrinks its radius to zero, both via `transition.attr` and `style`. The initial animation uses `transition.delay` based on array index.
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>