d3-brush example
✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 3, 2018
Created on Apr 15, 2017
A minimal interactive brush demonstration renders a 400 by 400 SVG rectangle, where the user drags to select a rectangular region. The example uses the d3-brush API from D3 version 4 to track selection coordinates, logging the starting and ending positions to the browser console during brushing and reporting the absence of a selection when the brush is cleared. The code defines the brush extent to match the full drawing area and attaches start, brush, and end event handlers.
AI-generated descriptionforked from <a href='http://bl.ocks.org/aaizemberg/'>aaizemberg</a>'s block: <a href='http://bl.ocks.org/aaizemberg/45aaf921848d45fd9e52640cb690ae1b'>d3-brush mini example</a>
mit Licensed