Docs
⚙️ ⏐ Utils
Brush

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 (opens in a new tab)

PropDescriptionDefault
scale
any
height
number
width
number
disabled
boolean
fill
string
domain
[ChartDataTypes, ChartDataTypes]
onBrushChange
(e: any) => void

Brush (opens in a new tab)

PropDescriptionDefault
height
number
width
number
disabled
boolean
start
number
end
number
onBrushChange
(e: BrushChangeEvent) => void

BrushHandle (opens in a new tab)

PropDescriptionDefault
height *
number
onHandleDrag *
(deltaX: number) => void

BrushSlice (opens in a new tab)

PropDescriptionDefault
height *
number
width *
number
start *
number
end *
number
onBrushChange *
(event: BrushChangeEvent) => void