Permalink
Browse files

fixed color issues

  • Loading branch information...
1 parent 8c61120 commit 137090581ebfc441d2bfdc9f675c6d6ae23d0d37 @vicapow committed May 19, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.html
View
@@ -26,14 +26,14 @@
.attr("width", width)
.attr("height", height)
.append("g")
- .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
+ .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")")
var g = svg.selectAll(".arc")
.data(pie(data))
.enter().append("g")
- .attr("class", "arc");
+ .attr("class", "arc")
g.append("path")
.attr("d", arc)
- .style("fill", function(d) { return color(d.data.age); });
+ .style("fill", function(d, i) { return colors(i) })
</script>
</body>

0 comments on commit 1370905

Please sign in to comment.