javascript - Pie chart won't transition on enter selection - d3 -


i'm trying transitions working on enter selection of pie chart:

  d3.select(this).append('path')       .attr("fill", function(d, i) { return color(d.data.amount) })       .attr("class", function (d) { return 'slice-' + d.data.label })       .each(function(d) { this._current = d; })       .transition()       .duration(9500)       .attrtween("d", function(a) {           var = d3.interpolate(this._current, a);           this._current = i(0);           return function(t) {               return arc(i(t));               };       }); 

i'm pretty sure i've got got attrtween() bit correct have transitions working later on in code. can't working on enter selection. missing ?

http://jsfiddle.net/euk6h/19/


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -