Skip to content

Commit

Permalink
fixed color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vicapow committed May 19, 2014
1 parent 8c61120 commit 1370905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
.attr("width", width) .attr("width", width)
.attr("height", height) .attr("height", height)
.append("g") .append("g")
.attr("transform", "translate(" + width / 2 + "," + height / 2 + ")"); .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")")
var g = svg.selectAll(".arc") var g = svg.selectAll(".arc")
.data(pie(data)) .data(pie(data))
.enter().append("g") .enter().append("g")
.attr("class", "arc"); .attr("class", "arc")
g.append("path") g.append("path")
.attr("d", arc) .attr("d", arc)
.style("fill", function(d) { return color(d.data.age); }); .style("fill", function(d, i) { return colors(i) })


</script> </script>
</body> </body>
Expand Down

0 comments on commit 1370905

Please sign in to comment.