         super.init(DBL_MAX)
     }
     
-    private static func largestSize(minValue: Int, maxValue: Int, formatter: NSNumberFormatter, font: UIFont) -> CGFloat {
+    private static func largestSize(minValue: Double, maxValue: Double, formatter: NSNumberFormatter, font: UIFont) -> CGFloat {
         
         let minNumberTextSize = ChartUtils.textSize(formatter.stringFromNumber(minValue)!, font: font).width
         let maxNumberTextSize = ChartUtils.textSize(formatter.stringFromNumber(maxValue)!, font: font).width

            counter += 1
        }
        
        var maxFittingFactorOpt: (min: Int, max: Int, factor: Double)?
        for f in fittingFactorsPerDelta {
            
            if let maxFittingFactor = maxFittingFactorOpt {

        return Double(maxValue)
    }
    
    private var minValue: Double
    private var maxValue: Double
    private let minSpace: CGFloat
    private let nice: Bool
    private let preferredDividers: Int
    
    private let maxTextSize: CGFloat
    
    public init(minValue: Double, maxValue: Double, preferredDividers: Int, nice: Bool, formatter: NSNumberFormatter, font: UIFont, minSpace: CGFloat = 10) {
        
        self.minValue = minValue
        self.maxValue = maxValue
