d3js workshop - circles 2
Three circles spaced horizontally transition in sequence from their initial position, turning red as they shift downward. Hovering reverses the effect, returning a circle to its starting point in black; clicking turns it green, briefly enlarges it, then shrinks it to nothing. The example demonstrates D3 data joins, selection, and event handling within an SVG scene, using D3 v3’s `transition()`, `delay()`, `duration()`, and `on()` methods on a fixed data array. It extends a basic circles tutorial with interactive feedback and animated state changes.