Skip to main content
100%

D3 Workshop: Part 2 - SVGs and d3 Transitions

✓ Published0🌍 Public
FFordMcLeod
Last edited Mar 24, 2018
Created on Mar 24, 2018

This example demonstrates how to progressively build and update SVG shapes using D3 v4, starting with a static blue rectangle and red circle, then responding to button clicks to create, delete, and transition rectangles. The code uses D3 selections, data binding, and the `transition()` API to move shapes to random locations and animate fill colors from a predefined array. It also shows how to use the enter-update-exit pattern to manage dynamic elements. The visualization serves as a hands-on workshop exercise, with a checklist of tasks covering manual SVG creation versus D3-driven updates.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/ideaOwl/'>ideaOwl</a>'s block: <a href='http://bl.ocks.org/ideaOwl/95dca9b901fd96e46abf916e4caf3057'>D3 Workshop: Part 2 - SVGs and d3 Transitions</a>

mit Licensed

Similar vizzes