title: d3: how to link data to an element manually
body: <p>I have 5 existing <code>div</code> elements and an array <code>data</code> of 5 values. 
  Currently <code>d</code> in d3 <code>each</code> returns <code>undefined</code> while <code>data[i]</code> return it value.</p>
  
  <pre><code>d3.selectAll("div")                
                  .each(function(d,i){                                
                      console.log(d, i, data[i]);
  }
  </code></pre>
  
  <p>How to associate <code>div</code> and <code>data[i]</code> so that <code>d</code> will return the value of <code>data[i]</code> without using d3 <code>enter()</code>?</p>