Interface: TooltipHandle
Defined in: packages/sdvplot/src/interact/tooltip.ts:20
A live tooltip that tooltip returns.
Methods
destroy()
destroy():
void
Defined in: packages/sdvplot/src/interact/tooltip.ts:30
Remove the box.
Returns
void
hide()
hide():
void
Defined in: packages/sdvplot/src/interact/tooltip.ts:28
Hide the box; show brings it back.
Returns
void
show()
show(
x,y,lines,swatch?):void
Defined in: packages/sdvplot/src/interact/tooltip.ts:26
Show lines (the first bold) beside the point x, y in the svg's user space, with an optional colour swatch
at the right. Placed 12 px right of the point and above it; flipped to its left when it would pass the right
edge, and kept inside the top and bottom.
Parameters
x
number
y
number
lines
readonly string[]
swatch?
string
Returns
void