Skip to content

Commit

Permalink
Only interpolate angles, not data, when updating label paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Stillesjö committed Jun 2, 2016
1 parent c5166de commit 4f2c31b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pie-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ dc.pieChart = function (parent, chartGroup) {
polyline.exit().remove();
dc.transition(polyline, _chart.transitionDuration())
.attrTween('points', function (d) {
this._current = this._current || d;
var interpolate = d3.interpolate(this._current, d);
var current = this._current || d;
current = {startAngle: current.startAngle, endAngle: current.endAngle};
var interpolate = d3.interpolate(current, d);
this._current = interpolate(0);
return function (t) {
var arc2 = d3.svg.arc()
Expand Down

0 comments on commit 4f2c31b

Please sign in to comment.