d3-brush

Select a one- or two-dimensional region using the mouse or touch.

d3d3-modulebrushinteraction

https://d3js.org/d3-brush/