         }
         
         drawAxes()
+        
         if xLabels != nil || series.count > 0 {
             drawLabelsAndGridOnXAxis()
         }

        CGContextSetLineWidth(context, 0.5)
        
        var labels: Array<Float>
        if (yLabels == nil) {
            yLabels = [(min.y + max.y) / 2, max.y]
            if (yLabelsOnRightSide || min.y != 0) {
                yLabels.insert(min.y, atIndex: 0)
            }
        }
        let scaled = scaleValuesOnYAxis(yLabels)
        let padding: CGFloat = 5
        for (i, value) in enumerate(scaled) {
            

                
                CGContextMoveToPoint(context, 0, y)
                CGContextAddLineToPoint(context, self.bounds.width, y)
                if labels[i] != 0 {
                    // Horizontal grid for 0 is not dashed
                    CGContextSetLineDash(context, 0, [5], 1)
                }
