Created
July 2, 2012 23:53
-
-
Save mkeen/3036484 to your computer and use it in GitHub Desktop.
This file contains 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
nv.addGraph(function() { | |
var chart = nv.models.pieChart() | |
.x(function(d) { return d.label }) | |
.y(function(d) { return d.value }) | |
.showLabels(true); | |
d3.select("#chart svg") | |
.datum(exampleData()) | |
.transition().duration(1200) | |
.call(chart); | |
return chart; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment