                 }
             }
             
-            angle += newangle * _animator.phaseX
+            angle += sliceAngle * _animator.phaseX
             cnt++
         }
         

            
            // redefine the rect that contains the arc so that the highlighted pie is not cut off
            
            let startAngle = angle + set.sliceSpace / 2.0
            var sweepAngle = sliceDegrees * _animator.phaseY - set.sliceSpace / 2.0
            if (sweepAngle < 0.0)
            {
                sweepAngle = 0.0

                if (!_chart.needsHighlight(xIndex: e.xIndex,
                    dataSetIndex: _chart.data!.indexOfDataSet(dataSet)))
                {
                    let startAngle = rotationAngle + (angle + sliceSpace / 2.0) * _animator.phaseY
                    var sweepAngle = (sliceAngle - sliceSpace / 2.0) * _animator.phaseY
                    if (sweepAngle < 0.0)
                    {
                        sweepAngle = 0.0
