title: Google OrgChart - Google Visualization
body: <p>I have create a chart using orgchart similar to the following. Chart generated through the data stored in mysql table (using php). </p>
  
  <p><img src="https://i.stack.imgur.com/bZ2AD.png" alt="enter image description here"></p>
  
  <p>My question is I want to display the depth level in each node along with other details. How to do that? </p>
  
  <p><code>Example:
  Food -&gt; Level 1
  Vegetable and Meat -&gt; Level 2
  Vegetable 1, Vegetable 2 and Meat 1 -&gt; Level 3</code></p>
  
  <p>** There is api method (<code>data.getSelection.row</code>) to get the row (depth) of selected node. But it always seems to give the index of selected node instead of the row of selected node. **</p>