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

                // offset needed to center the drawn text in the slice
                let offset = drawAngles[cnt] / 2.0
                
                // calculate the text position
                let x = (r * cos(((rotationAngle + absoluteAngles[cnt] - offset) * _animator.phaseY) * ChartUtils.Math.FDEG2RAD) + center.x)
                var y = (r * sin(((rotationAngle + absoluteAngles[cnt] - offset) * _animator.phaseY) * ChartUtils.Math.FDEG2RAD) + center.y)
                
                let value = usePercentValuesEnabled ? entries[j].value / data.yValueSum * 100.0 : entries[j].value
                
                let val = formatter!.stringFromNumber(value)!

    
    internal func drawDataSet(context context: CGContext, dataSet: PieChartDataSet)
    {
        var angle: CGFloat = 0.0
        let rotationAngle = _chart.rotationAngle
        
        var cnt = 0
        
