We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4c0bb commit 7675e4fCopy full SHA for 7675e4f
demo/tooltip_lines.htm
@@ -25,7 +25,7 @@
25
TH2Painter.prototype.getBinTooltips = function(i, j) {
26
const res = this.originalgetBinTooltips(i, j);
27
res.shift(); // remove first line
28
- res.push(`Custom info for bin ${i} ${j}`);
+ res.push(`Custom info for bin ${i+1} ${j+1}`); // show bin index, +1 for underflow
29
return res;
30
}
31
@@ -60,7 +60,7 @@
60
painter.getTooltips = function(d) {
61
const res = this.originalgetTooltips(d);
62
63
- res.push(`Custom info for graph index ${d.indx}`);
+ res.push(`Custom info for graph index ${d.indx}`); // show point index
64
65
66
</script>
0 commit comments