Skip to content

Commit f3bc51f

Browse files
authored
Update calc.js comment
1 parent 17613d2 commit f3bc51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/histogram/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function calcAllAutoBins(gd, trace, pa, mainData, _overlayEdgeCase) {
309309
// Edge case: single-valued histogram overlaying others
310310
// Use them all together to calculate the bin size for the single-valued one
311311
// Don't re-calculate bin width if user manually specified it
312-
// Check if bingroup or trace[binAttr] (xbins or ybins) is defined
312+
// Check if bingroup or bin size is defined
313313
if(isOverlay && !Registry.traceIs(trace, '2dMap') && newBinSpec._dataSpan === 0 &&
314314
pa.type !== 'category' && pa.type !== 'multicategory' &&
315315
trace.bingroup === '' && trace._input?.[binAttr]?.size === undefined) {

0 commit comments

Comments
 (0)