Skip to content

Commit bcebc8a

Browse files
committed
fix sieve modification -> for single-item bar traces
1 parent 9959341 commit bcebc8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/bar/sieve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Sieve(traces, separateNegativeValues, dontMergeOverlappingData) {
4848

4949
var dv = Lib.distinctVals(positions);
5050
this.distinctPositions = dv.vals;
51-
if(dv.vals.length === 1 && width1) this.minDiff = width1;
51+
if(dv.vals.length === 1 && width1 !== Infinity) this.minDiff = width1;
5252
else this.minDiff = Math.min(dv.minDiff, width1);
5353

5454
this.binWidth = this.minDiff;

0 commit comments

Comments
 (0)