html tag convert to d3.select() point
snippet in html

d3.select specific div

user5250

//Class
d3.select(“.classname”)

//Unique identifier
d3.select(“#line”)
          
//Attribute
d3.select(“[color=black]”)

html tag convert to d3.select() point

user4056

var selection = d3.select(domElement);

// later via the selection you can retrieve the element with .node()
var elt = selection.node();