From 7888bd2a823281214cfa18bfac8d31de065b91cb Mon Sep 17 00:00:00 2001 From: ASLeonard Date: Thu, 22 Feb 2024 14:40:33 +0100 Subject: [PATCH] update tooltip syntax --- js/showTooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/showTooltip.js b/js/showTooltip.js index f3205e3..d0a421c 100644 --- a/js/showTooltip.js +++ b/js/showTooltip.js @@ -1,5 +1,5 @@ //Show the tooltip on hover -function showTooltip(d) { +function showTooltip(event, d) { //Position tooltip var Loc = this.getBoundingClientRect(); @@ -21,7 +21,7 @@ function showTooltip(d) { d3.select("#tooltip-place2").html("Time: " + d.time); }//showTooltip -function hideTooltip(d) { +function hideTooltip(event, d) { //Only reset opacity of no search is being performed if (inSearch == false) {