diff --git a/src/components/Tooltip.ts b/src/components/Tooltip.ts index 3515715..4ba13b3 100644 --- a/src/components/Tooltip.ts +++ b/src/components/Tooltip.ts @@ -3,11 +3,12 @@ import { select } from "d3-selection"; export type Tooltip = ReturnType; export const makeTooltip = (div: HTMLDivElement) => { - const root = select(div) - .selectAll(".tooltip") + const root = select(document.body) + .selectAll(".plotteus-tooltip") .data([null]) .join("div") - .attr("class", "tooltip") + .attr("class", "plotteus-tooltip") + .style("z-index", "999999") .style("position", "fixed") .style("top", 0) .style("left", 0)