Create a new two-dimensional brush.
The generic "Datum" refers to the type of the data of the selected svg:g element to which the returned BrushBEhavoir will be applied.
Return the current brush selection for the specified node. Internally, an element’s brush state is stored as element.__brush; however, you should use this method rather than accessing it directly. If the given node has no selection, returns null. Otherwise, the selection is defined as an array of numbers.
The node for which the brush selection should be returned.
Creates a new one-dimensional brush along the x-dimension.
The generic "Datum" refers to the type of the data of the selected svg:g element to which the returned BrushBEhavoir will be applied.
Creates a new one-dimensional brush along the y-dimension.
The generic "Datum" refers to the type of the data of the selected svg:g element to which the returned BrushBEhavoir will be applied.
Generated using TypeDoc
Type alias for a BrushSelection. For a two-dimensional brush, it must be defined as [[x0, y0], [x1, y1]], where x0 is the minimum x-value, y0 is the minimum y-value, x1 is the maximum x-value, and y1 is the maximum y-value. For an x-brush, it must be defined as [x0, x1]; for a y-brush, it must be defined as [y0, y1].