Skip to main content
100%

Brush Handles d3v4 II

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 9, 2017
Created on Mar 9, 2017

This example demonstrates a brushable scatterplot where 800 random data points are plotted along a linear x-scale and a normally distributed y-axis. Users can drag horizontally to select a range, which highlights the corresponding circles in red while custom brush handles appear as resizable path shapes. Built with D3 v4, it uses `d3.brushX` for the brush interaction, `d3.axisBottom` for the x-axis, and `d3.randomNormal` to generate the y-values. The custom handles are drawn with SVG paths, and the brushing updates both circle classes and handle positions via the brush event handler.

AI-generated description

Froked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4349545'>Brush Handles</a> (now in d3v4).

See issue #14 and crossfilter.

forked from <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/2d43867ba1f36a05459c7113c7f6f98a'>Brush Handles d3v4 II</a>

gpl-3.0 Licensed

Similar vizzes