title: wrapping svg:text with mbostock's wrap function
body: <p>Basically, I am trying to wrap the text in a svg:text element to some arbitrary width using the wrap() function from <a href="http://bl.ocks.org/mbostock/7555321" rel="nofollow">this example</a> by Mike. My data is more nested than his and I attempted to adjust (er hack) it before passing it in, but without success. I have been staring at this for too long...and probably missing the obvious.</p>
  
  <pre><code>.text(function(d){
      var sel = d3.select(this); 
      sel[0][0].__data__ = d.name; 
      return wrap(sel,50);}
  );
  </code></pre>
  
  <p>I put a minimal example in a <a href="http://jsfiddle.net/bA4G9/" rel="nofollow">FIDDLE</a>, with appropriate comments. The solution should not involve altering the present structure of the data since I cannot change it. </p>
  
  <p>Your help is appreciated. Thanks!</p>