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.
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js