Skip to content

Commit 98d846e

Browse files
authored
fix shorthand areaY (#851)
shorthand areaY + all shorthand tests closes #850
1 parent ff15257 commit 98d846e

40 files changed

+2161
-1
lines changed

src/transforms/bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function bin(outputs = {fill: "count"}, options = {}) {
2727
return binn(x, y, null, null, outputs, maybeInsetX(maybeInsetY(options)));
2828
}
2929

30-
function maybeDenseInterval(bin, k, options) {
30+
function maybeDenseInterval(bin, k, options = {}) {
3131
return options?.interval == null ? options : bin({[k]: options?.reduce === undefined ? reduceFirst : options.reduce, filter: null}, options);
3232
}
3333

test/output/shorthandArea.svg

Lines changed: 74 additions & 0 deletions
Loading

test/output/shorthandAreaY.svg

Lines changed: 74 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)