VueJS Dynamic Bar Chart Colors
<p>Given a bar graph with 2 data sets. How can I give each bar its own color?</p>

<pre><code>svg.selectAll(".bar")
  .data(data)
  .enter().append("rect")
  .style("fill", function(d,i) { console.log(i.fill) }  // &lt;- first red, second blue
</code></pre>