Given an SVG created with d3, for example using
svg = d3.select("#someElement").append("svg")...
how do I find the top and left of the SVG in the absolute coordinates of the body
, so that I can, for example, absolutely position a tooltip or other element relative to the top -left of the SVG with something like
tooltip.style("left", leftInBody + 72 + "px").style("top", topInBody + 20 + "px");