Skip to content

Commit 57c7d6c

Browse files
committed
fix for transformed histograms to give consistent _fullInput
🤦 transforms...
1 parent 9795b69 commit 57c7d6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/traces/histogram/clean_bins.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ module.exports = function cleanBins(trace, ax, binDirection) {
6565
var autoBinAttr = 'autobin' + binDirection;
6666

6767
if(typeof trace[autoBinAttr] !== 'boolean') {
68-
trace[autoBinAttr] = trace._input[autoBinAttr] = !(
68+
trace[autoBinAttr] = trace._fullInput[autoBinAttr] = trace._input[autoBinAttr] = !(
6969
(bins.start || bins.start === 0) &&
7070
(bins.end || bins.end === 0)
7171
);
7272
}
7373

74-
if(!trace[autoBinAttr]) delete trace['nbins' + binDirection];
74+
if(!trace[autoBinAttr]) {
75+
delete trace['nbins' + binDirection];
76+
delete trace._fullInput['nbins' + binDirection];
77+
}
7578
};

0 commit comments

Comments
 (0)