Skip to Content

Brush

Brushing in REAVIZ allows you to interactively specify a one- or two-dimensional selected region using a pointing gesture, such as by clicking and dragging the mouse. This feature is often used to select discrete elements, such as dots in a scatterplot, making it a powerful tool for data exploration and interaction.

Where to use:

  • Select Data Points: Ideal for selecting and highlighting specific data points in a chart.
  • Interactive Data Exploration: Useful for interactive exploration and analysis of data.
  • Zoom and Filter: Great for zooming into specific regions or filtering data based on selection.

Examples

API

ChartBrushΒ 

NameTypeDefault
scaleany

D3 scale for the axis the brush is attached to. Set internally by the parent chart.

heightnumber

Height of the brush area. Set internally by the parent chart.

widthnumber

Width of the brush area. Set internally by the parent chart.

childrenany

Children rendered inside the brushable area.

disabledboolean
fillstring
domain[ChartDataTypes, ChartDataTypes]
onBrushChange(e: any) => void

BrushΒ 

NameTypeDefault
heightnumber
widthnumber
disabledboolean
startnumber
endnumber
onBrushChange(e: BrushChangeEvent) => void

BrushHandleΒ 

NameTypeDefault
heightnumber

Height of the handle. Set internally by the parent component.

onHandleDrag(deltaX: number) => void

Fires when the handle is dragged. deltaX is the change in x position.

BrushSliceΒ 

NameTypeDefault
heightnumber
widthnumber
startnumber
endnumber
onBrushChange(event: BrushChangeEvent) => void
Last updated on