Skip to main content
100%

fresh block

✓ Published0🌍 Public
CCurran Kelleher
Last edited Dec 13, 2015
Created on Dec 13, 2015

Two overlapping red rectangles fill a fixed SVG canvas, each offset by the same margin values so the second copy is drawn exactly on top of the first. The visualization uses a custom reusable `R` function that appends a `<g>` element and a `<rect>` to the SVG, called twice via `selection.call(R)`, with the bounding box stored as a data object. The code relies on D3.js version 3.5.5 to bind the box dimensions and apply transforms and styles.

AI-generated description

Built with blockbuilder.org

Similar vizzes