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 bc6dc09 commit e60d2d0Copy full SHA for e60d2d0
modules/tree.mjs
@@ -1057,7 +1057,7 @@ class TDrawSelector extends TSelector {
1057
res.k = res.nbins / (res.max - res.min);
1058
1059
res.GetBin = function(value) {
1060
- 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);
1061
return bin < 0 ? 0 : ((bin > this.nbins) ? this.nbins + 1 : bin + 1);
1062
};
1063
0 commit comments