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 4bcabf0 commit 1f70b72Copy full SHA for 1f70b72
src/transforms/bin.js
@@ -77,7 +77,7 @@ function binn(
77
// Greedily materialize the z, fill, and stroke channels (if channels and not
78
// constants) so that we can reference them for subdividing groups without
79
// computing them more than once.
80
- const {z, fill, stroke, ...options} = inputs;
+ const {x, y, z, fill, stroke, ...options} = inputs;
81
const [GZ, setGZ] = maybeLazyChannel(z);
82
const [vfill] = maybeColor(fill);
83
const [vstroke] = maybeColor(stroke);
@@ -89,9 +89,9 @@ function binn(
89
fill: GF,
90
stroke: GS,
91
...options,
92
+ ...BX1 ? {x1: BX1, x2: BX2} : {x},
93
+ ...BY1 ? {y1: BY1, y2: BY2} : {y},
94
...GK && {[gk]: GK},
- ...BX1 && {x1: BX1, x2: BX2},
- ...BY1 && {y1: BY1, y2: BY2},
95
...Object.fromEntries(outputs.map(({name, output}) => [name, output])),
96
transform: maybeTransform(options, (data, facets) => {
97
const K = valueof(data, k);
test/output/penguinMassSpecies.svg
0 commit comments