title: d3 transition error
body: <p>I am probably making a rookie D3 mistake here, but I am trying to use D3 to make an animated change in an existing HTML element.</p>
  
  <p>So let's say I have the following HTML</p>
  
  <pre><code>&lt;div id="label"&gt;Hello&lt;/div&gt;
  </code></pre>
  
  <p>And then I am trying to change this with animated D3 as follows:</p>
  
  <pre><code>d3.select("#label").transition().duration(1000).html("World");
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>"Object [object Array] has no method 'html'"
  </code></pre>
  
  <p>When I leave out the transition all works well:</p>
  
  <pre><code>d3.select("#label").html("world");
  </code></pre>
  
  <p>What am I doing wrong here?</p>