Skip to main content
100%

Brush I

✓ Published0🌍 Public
MMorganhaoyu
Last edited Oct 20, 2018
Created on Oct 20, 2018

A brushable scatterplot displays 300 randomly generated points. A horizontal brush initially selects a range, highlighting points within it in red with a brown stroke. The example uses d3.brushX to define the brush and handles the brush event to update the selection state. Clicking re-centers the brush using a fixed width, demonstrating interactive selection on an SVG rendered with d3.scaleLinear and d3.axisBottom.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes