title: Using d3 defer in Angular model
body: <p>I have a working d3 choropleth that has the following chunk of code:</p>
  
  <pre><code>// Load data
  .defer(d3.csv, data, function(d) { 
    rateById.set(d.state, +d.count); 
  })
  </code></pre>
  
  <p>This is working fine.  Problem is, now I'm trying to pass in data just as an array of objects.  A format such as:</p>
  
  <pre><code>[
   {
     id: 1,
     count: 200 
   },
   {
     id: 2,
     count: 100
   }
  ]
  </code></pre>
  
  <p>How can I change my <code>.defer</code> call to support this new data format?</p>