d3.select specific div

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

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

Also in JavaScript: