Skip to content

Commit c23dc13

Browse files
committed
hexbin+facet reindex
1 parent cb91484 commit c23dc13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transforms/hexbin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {sqrt3} from "../symbols.js";
33
import {identity, isNoneish, number, valueof} from "../options.js";
44
import {initializer} from "./basic.js";
55
import {hasOutput, maybeGroup, maybeOutputs, maybeSubgroup} from "./group.js";
6+
import {originals} from "../facet.js";
67

78
// We don’t want the hexagons to align with the edges of the plot frame, as that
89
// would cause extreme x-values (the upper bound of the default x-scale domain)
@@ -101,7 +102,7 @@ export function hexbin(outputs = {fill: "count"}, options = {}) {
101102
const BY = [];
102103
let i = -1;
103104
for (const o of outputs) o.initialize(data);
104-
for (const facet of facets) {
105+
for (const facet of originals(facets)) {
105106
const binFacet = [];
106107
for (const o of outputs) o.scope("facet", facet);
107108
for (const [f, I] of maybeGroup(facet, G)) {

0 commit comments

Comments
 (0)