Skip to content

Commit 627f24b

Browse files
committed
simplify histogram2d x/y len logic
1 parent 5c85981 commit 627f24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/histogram2d/sample_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function handleSampleDefaults(traceIn, traceOut, coerce, layout
2020
// we could try to accept x0 and dx, etc...
2121
// but that's a pretty weird use case.
2222
// for now require both x and y explicitly specified.
23-
if(!(x && xlen && y && ylen)) {
23+
if(!xlen || !ylen) {
2424
traceOut.visible = false;
2525
return;
2626
}

0 commit comments

Comments
 (0)