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 ?
Comments
Post a Comment