🌍 Public
Viewing a saved revision (read-only)
b5ba188158ee41608ddf7ce23beeb5bf
Unidirectional Flow
Five fruit circles appear in a row, rendered as SVG via D3 v5. The example demonstrates a unidirectional data flow in D3: a click handler updates a selected fruit’s stroke, a timed removal deletes the last circle, and another timed update changes a fruit’s type from apple to lemon, altering its color and radius. The code uses `selection.enter`, `merge`, and `exit`, along with `scaleOrdinal` for color and radius mappings.
AI-generated description