Skip to content
Advertisement

Tag: d3.js

How to access the parentNode of a selection to raise an element?

I’ve created the following document: When I mouse over each path I want to append it last inside the svg:g so it appears on top of the other lines, but I don’t know how to properly select the parentNode: p1 works, but I wanted to make sure that this is a .line, so I preferred to use current_gene_pcp, but p2

Advertisement