Skip to content

Commit 5b81573

Browse files
committed
more flexible dot[XY]
1 parent f0e3af2 commit 5b81573

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/marks/dot.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ export function dot(data, options) {
7373
return new Dot(data, options);
7474
}
7575

76-
export function dotX(data, {x = identity, ...options} = {}) {
77-
return new Dot(data, {...options, x, y: null});
76+
export function dotX(data, {x = identity, y = null, ...options} = {}) {
77+
return new Dot(data, {...options, x, y});
7878
}
7979

80-
export function dotY(data, {y = identity, ...options} = {}) {
81-
return new Dot(data, {...options, y, x: null});
80+
export function dotY(data, {y = identity, x = null, ...options} = {}) {
81+
return new Dot(data, {...options, y, x});
8282
}

0 commit comments

Comments
 (0)