title: read width of d3 text element
body: <p>I would like to read the width of <code>&lt;text&gt;</code> elements, created in d3, after they're created.</p>
  
  <p>I have tried</p>
  
  <pre><code>svg.selectAll("text")
      .each(function () {
          console.log('text', d3.select(this).style("width"));
      }); // 'auto'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>svg.selectAll("text")
      .each(function () {
          console.log('text', $(this).css("width"));
      }); // '0px'
  </code></pre>
  
  <p>Thanks in advance</p>