From 5832f13ccda39e00856a8cb55d7b683ac23adca8 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 29 Aug 2018 02:50:57 -0400 Subject: [PATCH] commenting pie code --- examples/pie/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pie/app.js b/examples/pie/app.js index 3d1bb4e..f9bb1fa 100644 --- a/examples/pie/app.js +++ b/examples/pie/app.js @@ -59,7 +59,7 @@ path.on('click', function(clickedDatum, clickedIndex){ //set up the click handle path.transition() //create the transition .duration(750) //add how long the transition takes .attrTween('d', function(d) { //tween the d attribute - var interpolate = d3.interpolate(this._current, d); //interpolate from what the d attribute was (this._current) and what it is now + var interpolate = d3.interpolate(this._current, d); //create an interpolater function from what the d attribute was (this._current) and what it is now this._current = interpolate(0); //save new value of data return function(t) { //re-run the arc function to redraw the path return arc(interpolate(t));