title: How to get the rotation of a text label in the Zoomable Icicle Layout in D3?
body: <p>I have added labels to the Zoomable Icicle Layout example provided here: <a href="http://bl.ocks.org/mbostock/1005873" rel="nofollow">http://bl.ocks.org/mbostock/1005873</a></p>
  
  <p>I rotate the labels based on available space using the following:</p>
  
  <pre><code>.attr("transform", function (d) {
       return (x(d.x + d.dx) - x(d.x)) &gt; 50 ?
            ("translate(" + (x(d.x + d.dx / 2)) + "," + (y(d.y + d.dy / 2)) + ")rotate(0)") :
            ("translate(" + (x(d.x + d.dx / 2)) + "," + (y(d.y + d.dy / 2)) + ")rotate(90)"); })
  </code></pre>
  
  <p>which rotates the label 90' if the space is too small to keep it horizontal.</p>
  
  <p>What I would like to know is how to get the rotation value of each d?</p>