score:44

Accepted answer

You can select an element by ID by prefixing the ID with "#" and using that as a selector:

d3.select("#ID");

or to select a path with that ID

d3.select("path#ID");

Related Query

More Query from same tag