We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313cc21 commit b72d9b2Copy full SHA for b72d9b2
modules/tree.mjs
@@ -1053,7 +1053,7 @@ class TDrawSelector extends TSelector {
1053
res.k = res.nbins / (res.max - res.min);
1054
1055
res.GetBin = function(value) {
1056
- const bin = this.lbls?.indexOf(value) ?? Number.isFinite(value) ? Math.floor((value - this.min) * this.k) : this.nbins + 1;
+ const bin = this.lbls?.indexOf(value) ?? (Number.isFinite(value) ? Math.floor((value - this.min) * this.k) : this.nbins + 1);
1057
return bin < 0 ? 0 : ((bin > this.nbins) ? this.nbins + 1 : bin + 1);
1058
};
1059
0 commit comments