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 b3b171b commit 14a9711Copy full SHA for 14a9711
modules/tree.mjs
@@ -1193,7 +1193,7 @@ class TDrawSelector extends TSelector {
1193
res.k = res.nbins / (res.max - res.min);
1194
1195
res.GetBin = function(value) {
1196
- 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);
1197
return bin < 0 ? 0 : ((bin > this.nbins) ? this.nbins + 1 : bin + 1);
1198
};
1199
0 commit comments