             
             // draw the shadow
             
-            var shadowColor = dataSet.shadowColor ?? dataSet.colorAt(j)
+            var shadowColor: UIColor! = nil
             if (dataSet.makeShadowSameColorAsCandle)
             {
                 if (e.open > e.close)

            }
            else
            {
                CGContextSetStrokeColorWithColor(context, UIColor.blackColor().CGColor)
                CGContextStrokeRect(context, _bodyRect)
            }
        }

                }
            }
            
            if (shadowColor === nil)
            {
                shadowColor = dataSet.shadowColor ?? dataSet.colorAt(j);
            }
            
            CGContextSetStrokeColorWithColor(context, shadowColor.CGColor)
            CGContextStrokeLineSegments(context, _shadowPoints, 2)
            
            // calculate the body
