We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77bc893 + c4f721e commit 1ba07e0Copy full SHA for 1ba07e0
src/components/Tooltip.ts
@@ -3,11 +3,12 @@ import { select } from "d3-selection";
3
export type Tooltip = ReturnType<typeof makeTooltip>;
4
5
export const makeTooltip = (div: HTMLDivElement) => {
6
- const root = select(div)
7
- .selectAll(".tooltip")
+ const root = select(document.body)
+ .selectAll(".plotteus-tooltip")
8
.data([null])
9
.join("div")
10
- .attr("class", "tooltip")
+ .attr("class", "plotteus-tooltip")
11
+ .style("z-index", "999999")
12
.style("position", "fixed")
13
.style("top", 0)
14
.style("left", 0)
0 commit comments