Skip to main content
100%

Remove before add

✓ Published0🌍 Public
GGerardoFurtado
Last edited Mar 27, 2019
Created on Mar 27, 2019

Two buttons switch between two datasets, each displayed as a grid of small squares that grow or shrink to represent a numeric block count. Changing datasets triggers a D3 v4 transition where exiting squares shrink and are removed before entering squares expand, creating a staged reveal. The color of each square updates from light gray to a value mapped through `d3.scaleThreshold`, while an annotation text fades to match the event name. All rendering uses D3 selections, `transition.attr`, and `transition.remove` on SVG `rect` elements.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/pybern/'>pybern</a>'s block: <a href='http://bl.ocks.org/pybern/4b4b73dbd47ec40e3b5ca7971dce1a36'>Remove before add</a>

mit Licensed

Similar vizzes