         if max.y == nil { max.y = 0 }
 
         return (min: (x: min.x!, y: min.y!), max: (x: max.x!, max.y!))
-
     }
 
     fileprivate func scaleValuesOnXAxis(_ values: [Float]) -> [Float] {

    // MARK: - Scaling

    fileprivate func getMinMax() -> (min: ChartPoint, max: ChartPoint) {

        // Start with user-provided values

        var min = (x: minX, y: minY)

            label.frame.origin.y -= label.frame.height

            self.addSubview(label)
        }
        UIGraphicsEndImageContext()
    }

    // MARK: - Touch events
