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

            
            angle *= _animator.phaseX
            
            let sliceDegrees = drawAngles[xIndex]
            
            let shift = set.selectionShift
            let circleBox = _chart.circleBox

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