Skip to content

Commit

Permalink
shorthand areaY
Browse files Browse the repository at this point in the history
closes #850
  • Loading branch information
Fil committed Apr 19, 2022
1 parent ff15257 commit b60a66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transforms/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function bin(outputs = {fill: "count"}, options = {}) {
return binn(x, y, null, null, outputs, maybeInsetX(maybeInsetY(options)));
}

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

Expand Down

0 comments on commit b60a66f

Please sign in to comment.