Skip to content

Commit c4fb0eb

Browse files
committed
fix links
1 parent 608fa7c commit c4fb0eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/interactions/brush.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Plot.plot({
5151

5252
The brush transform is similar to the [pointer](./pointer.md) transform: it interactively filters the mark’s index to show a subset of the data, and re-renders the mark as the selection changes. Since the mark is lazily rendered during interaction, it is fast: only the visible elements are rendered as needed. And, like the filter and select transforms, unfiltered channel values are incorporated into default scale domains.
5353

54-
The brush transform supports both one- and two-dimensional brushing modes. The two-dimensional mode, [brush](#brush-options-1), is used above and is suitable for scatterplots and the general case: it allows the user to define a rectangular region by clicking on a corner (_e.g._ the top-left corner) and dragging the pointer to the bottom-right corner. The one-dimensional modes, [brushX](#brushx-options) and [brushY](#brushy-options), in contrast only consider one dimension; this is desirable when a chart has a “dominant” dimension, such as time in a time-series chart, the binned quantitative dimension in a histogram, or the categorical dimension of a bar chart.
54+
The brush transform supports both one- and two-dimensional brushing modes. The two-dimensional mode, [brush](#brush-options), is used above and is suitable for scatterplots and the general case: it allows the user to define a rectangular region by clicking on a corner (_e.g._ the top-left corner) and dragging the pointer to the bottom-right corner. The one-dimensional modes, [brushX](#brushx-options) and [brushY](#brushy-options), in contrast only consider one dimension; this is desirable when a chart has a “dominant” dimension, such as time in a time-series chart, the binned quantitative dimension in a histogram, or the categorical dimension of a bar chart.
5555

5656
The brush transform emits an [*input* event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event) whenever the selection changes, and sets the value of the plot element to the selected data. This allows you to use a plot as an [Observable view](https://observablehq.com/@observablehq/views) (viewof), or to register an *input* event listener to react to brushing.
5757

@@ -96,12 +96,12 @@ Applies the brush render transform to the specified *options* to filter the mark
9696
Plot.tip(aapl, Plot.pointerX({x: "Date", y: "Close"}))
9797
```
9898

99-
Like [brush](#brush-options-1), except the determination of the intersection exclusively considers the *x* (horizontal↔︎) position; this should be used for plots where *x* is the dominant dimension, such as the binned quantitative dimension in a histogram, or the categorical dimension of a bar chart.
99+
Like [brush](#brush-options), except the determination of the intersection exclusively considers the *x* (horizontal↔︎) position; this should be used for plots where *x* is the dominant dimension, such as the binned quantitative dimension in a histogram, or the categorical dimension of a bar chart.
100100

101101
## brushY(*options*)
102102

103103
```js
104104
Plot.tip(alphabet, Plot.pointerY({x: "frequency", y: "letter"}))
105105
```
106106

107-
Like [brush](#brush-options-1), except the determination of the intersection exclusively considers the *y* (vertical↕) position; this should be used for plots where *y* is the dominant dimension.
107+
Like [brush](#brush-options), except the determination of the intersection exclusively considers the *y* (vertical↕) position; this should be used for plots where *y* is the dominant dimension.

0 commit comments

Comments
 (0)