Skip to content

Commit

Permalink
update tooltip syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ASLeonard committed Feb 22, 2024
1 parent 078a4b5 commit 7888bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/showTooltip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//Show the tooltip on hover
function showTooltip(d) {
function showTooltip(event, d) {

//Position tooltip
var Loc = this.getBoundingClientRect();
Expand All @@ -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) {
Expand Down

0 comments on commit 7888bd2

Please sign in to comment.