Skip to content

Commit f611a5c

Browse files
committed
data brush.move
1 parent 3b99924 commit f611a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/interactions/brush.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The **brush mark** renders a two-dimensional [brush](https://d3js.org/d3-brush)
2525
:::plot hidden
2626
```js
2727
Plot.plot({
28-
marks: ((brush) => (d3.timeout(() => d3.select(brush._brushNodes[0]).call(brush._brush.move, [[100, 60], [300, 200]])), [
28+
marks: ((brush) => (d3.timeout(() => brush.move({x1: 36, x2: 48, y1: 15, y2: 20})), [
2929
Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "species"}),
3030
brush
3131
]))(Plot.brush())

0 commit comments

Comments
 (0)