Skip to content

Instantly share code, notes, and snippets.

@mkeen
Created July 2, 2012 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkeen/3036484 to your computer and use it in GitHub Desktop.
Save mkeen/3036484 to your computer and use it in GitHub Desktop.
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