Grid Snapping
✓ Published0🌍 Public
SSpaceActuary
Last edited Mar 21, 2016
Created on Mar 20, 2016
An interactive grid of color-changing rectangles represents a dataset of yearly groups, with brushing to select and highlight cells. The visualization uses a custom brush component in D3.js to snap selections to the grid of ordinal scales, then triggers a transition that animates the selected rectangles through a red-to-blue color change with a bounce easing effect. The code builds the SVG from scratch, defining ordinal scales for years and groups, and handles brush events to invert the selection coordinates back to data values.
AI-generated descriptionBuilt with blockbuilder.org