Skip to content

Commit 7675e4f

Browse files
committed
Change in tooltip_lines demo
1 parent 9c4c0bb commit 7675e4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/tooltip_lines.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
TH2Painter.prototype.getBinTooltips = function(i, j) {
2626
const res = this.originalgetBinTooltips(i, j);
2727
res.shift(); // remove first line
28-
res.push(`Custom info for bin ${i} ${j}`);
28+
res.push(`Custom info for bin ${i+1} ${j+1}`); // show bin index, +1 for underflow
2929
return res;
3030
}
3131

@@ -60,7 +60,7 @@
6060
painter.getTooltips = function(d) {
6161
const res = this.originalgetTooltips(d);
6262
res.shift(); // remove first line
63-
res.push(`Custom info for graph index ${d.indx}`);
63+
res.push(`Custom info for graph index ${d.indx}`); // show point index
6464
return res;
6565
}
6666
</script>

0 commit comments

Comments
 (0)