We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c58c43 commit aca1e7cCopy full SHA for aca1e7c
src/marks/brush.js
@@ -51,12 +51,12 @@ export class Brush extends Mark {
51
if (x) {
52
const e = y ? [selection[0][0], selection[1][0]] : selection;
53
const [x0, x1] = extent(e.map(x.invert));
54
- index = index.filter(i => X[i] >= x0 && X[i] < x1);
+ index = index.filter(i => X[i] >= x0 && X[i] <= x1);
55
}
56
if (y) {
57
const e = x ? [selection[0][1], selection[1][1]] : selection;
58
const [y0, y1] = extent(e.map(y.invert));
59
- index = index.filter(i => Y[i] >= y0 && Y[i] < y1);
+ index = index.filter(i => Y[i] >= y0 && Y[i] <= y1);
60
61
62
const dots = selection ? Array.from(index, i => J[i]) : data;
0 commit comments