Skip to content

Commit

Permalink
[Platform] Fix Gtex mouseover feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-lourenco committed Apr 30, 2024
1 parent 3222077 commit 4f55e6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/sections/src/target/Expression/GtexVariability.jsx
Expand Up @@ -144,12 +144,12 @@ function GtexVariability({ data }) {
.attr("width", d => x(d.q3) - x(d.q1))
.attr("height", rectHeight)
.attr("fill", d => colour(d.tissueSiteDetailId))
.on("mouseover", d => {
.on("mouseover", (d, i, nodes) => {
let X =
parseFloat(select(this).attr("x")) +
parseFloat(select(this).attr("width")) +
parseFloat(select(nodes[i]).attr("x")) +
parseFloat(select(nodes[i]).attr("width")) +
tooltipSettings.offsetX;
let Y = parseFloat(select(this).attr("y")) + tooltipSettings.offsetY;
let Y = parseFloat(select(nodes[i]).attr("y")) + tooltipSettings.offsetY;

tooltipText
.attr("y", Y)
Expand Down

0 comments on commit 4f55e6a

Please sign in to comment.