We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3de6f4 + 14b7694 commit a05b9abCopy full SHA for a05b9ab
1 file changed
src/interactions/brush.js
@@ -318,7 +318,7 @@ export class Brush extends Mark {
318
export function brush(data, options = {}) {
319
if (arguments.length === 1 && !isIterable(data)) (options = data), (data = undefined);
320
let {x, y, ...rest} = options;
321
- [x, y] = maybeTuple(x, y);
+ if (data != null) [x, y] = maybeTuple(x, y);
322
return new Brush(data, {...rest, x, y});
323
}
324
0 commit comments