title: D3.js: Expand tree till node n
body: <p>I am right now creating an Org Chart using a D3.js Tree layout. The Organization chart will be opened by a logged in user and the requirement is to show the org chart opened to the user's node by default.</p>
  
  <p>For example, if the logged in user is 'n', and the org chart is :</p>
  
  <pre><code>        j   m
         /   /
    b - e - k
   /
  a - d - l - n
   \
    c- f - h
        \ 
         i
  </code></pre>
  
  <p>The user will see : </p>
  
  <pre><code>a - d - l - n
  </code></pre>
  
  <p>So, the problem statement is to expand the Org chart till a particular node where the node id/name is the logged in user.</p>
  
  <p>Any help is welcome.</p>