         return scaled
     }
     
+    func getZero() -> Float {
+        return scaleValueOnYAxis(0)
+    }
+    
     // MARK: - Drawings
     
     func isVerticalSegmentAboveXAxis(yValues: Array<Float>) -> Bool {
         
         // YValues are "reverted" from top to bottom, so min is actually the maxz
         let min = maxElement(yValues)
-        let zero = scaleValueOnYAxis(0)
+        let zero = getZero()
         
         return min <= zero
         

                data.append(nil)
            }
        }

        delegate?.didTouchInsideChart(self, point: CGPointMake(x, y), axisValues: (x: xValue, y: yValue), data: data, indexes: touchedIndexes)
        
    }

    var highlightLineWidth: CGFloat = 0.5
    
    /**
    Negative offset for the highlight line, spans above the chart. Useful to display a label on touch.
    */
    var highlightLineOffset: CGFloat = 0
    
