block by rpgove f2abb9b4acaec88f099b

Showing tooltips above a different element with d3-tip

Full Screen

Sometimes you need to show a tooltip over a different element than the one firing the mouseover event. Fortunately, d3-tip allows you to do that by passing an SVGElement as the second parameter to tip.show(). Like this:

tip.show(data, target)

This SVGElement will be the new target of the tooltip.

index.html

d3tip.js