Created
February 5, 2014 01:04
-
-
Save PirosB3/8815613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var g = this.svg | |
.selectAll('.arc path') | |
.data(pie(mappedData), function(e) { | |
return e.data.label; | |
}) | |
g.enter() | |
.append('g') | |
.attr('class', 'arc') | |
.append('path') | |
g.transition() | |
.attr("d", function(a) { | |
var res = arc(a); | |
console.log(res); | |
return res; | |
}) | |
.style("fill", _.bind(function(d) { | |
return this.COLORS[d.data.label]; | |
}, this)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment