title: Highlight tree path in d3.js
body: <p>Based on this <a href="http://mbostock.github.io/d3/talk/20111018/tree.html" rel="nofollow noreferrer">example</a>:</p>
  
  <p><img src="https://i.stack.imgur.com/17hpU.jpg" alt="enter image description here"></p>
  
  <p>I have constructed a tree structure visualization in d3.js, which contains further features like zoom in and out, drag and move and highlight node and etc. The features added has no effects on the basic tree code as shown in that example. Now I want to achieve something like <em>Mouseover</em> to highlight the path to the root from the node my mouse is on. I have problem in tracking the path to the root (do not know how to track the path), could someone give a hint or some useful links on how to achieve that?</p>