Click to Select All
✓ Published0🌍 Public
Mmbostock
Last edited Aug 8, 2019
Created on Oct 18, 2017
A scatterplot displays 800 randomly generated points positioned across a linear x-axis and normally distributed y-values. Clicking and dragging outside the existing selection normally creates a new brush, but this modified behavior selects all points instead. The visualization uses D3 v4’s `d3.brushX` to handle brushing, `d3.scaleLinear` for axes, and SVG circles with red fill and brown stroke for selected items. A transition animates the brush movement when the user activates the select-all interaction.
AI-generated descriptionBy default, clicking and dragging outside the current brush selection drags a new selection. This brush has been modified such that this interaction instead selects everything.
gpl-3.0 Licensed