                     
                     if (innerRadius > 0.0)
                     {
+                        let sliceSpaceInnerAngle = visibleAngleCount == 1 ?
+                            0.0 :
+                            sliceSpace / (ChartUtils.Math.FDEG2RAD * innerRadius)
                         let startAngleInner = rotationAngle + (angle + sliceSpaceInnerAngle / 2.0) * phaseY
                         var sweepAngleInner = (sliceAngle - sliceSpaceInnerAngle) * phaseY
                         if (sweepAngleInner < 0.0)

                continue
            }
            
            if (xIndex == 0)
            {
                angle = 0.0

            
            if (innerRadius > 0.0)
            {
                let sliceSpaceInnerAngle = visibleAngleCount == 1 ?
                    0.0 :
                    sliceSpace / (ChartUtils.Math.FDEG2RAD * innerRadius)
                let startAngleInner = rotationAngle + (angle + sliceSpaceInnerAngle / 2.0) * phaseY
                var sweepAngleInner = (sliceAngle - sliceSpaceInnerAngle) * phaseY
                if (sweepAngleInner < 0.0)
