d3 get dom element from selection code example
Example: html tag convert to d3.select() point
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();