Skip to content

Commit 50cde73

Browse files
committed
Fix - provide tooltips for all drawn th2 bins
1 parent c542b9d commit 50cde73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/JSRootPainter.more.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3735,11 +3735,11 @@
37353735

37363736
var ttrect = this.draw_g.select(".tooltip_bin");
37373737

3738-
var binz = (find === 2) ? histo.getBinContent(i+1,j+1) : -100;
3738+
var binz = (find === 2) ? histo.getBinContent(i+1,j+1) : 0;
37393739

3740-
// console.log('find = ' + find + ' binz = ' + binz + ' minbin ' + this.minbin);
3740+
var colindx = (find === 2) ? this.getValueColor(binz, true) : null;
37413741

3742-
if ((find !== 2) || (binz === 0) || (binz < this.minbin)) {
3742+
if ((find !== 2) || (colindx === null)) {
37433743
ttrect.remove();
37443744
this.ProvideUserTooltip(null);
37453745
return null;

0 commit comments

Comments
 (0)