Skip to main content
100%

D3 Workshop: Part 2 - SVGs and d3 Transitions

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

An interactive D3.js v4 workshop demonstrates SVG shape manipulation and data-driven transitions. A button triggers D3 code that animates rectangles, changing their positions and colors based on a small inline array of color objects. The visualization uses raw SVG elements—a blue rect, pink-stroked circle, and yellow square—alongside D3-generated rectangles that employ `transition()` with a 1000-millisecond duration to animate `x` and `y` attributes and fill colors. The code also exercises selection, appending, and entering data rectangles through `svg.selectAll()` and `.enter()`.

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>

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

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

mit Licensed

Similar vizzes