         return cptFormatter
     }
 
-    class func rangeScale(_ range: CPTPlotRange?) -> RangeScale {
+    class func rangeScale(range: CPTPlotRange?) -> RangeScale {
 
         guard let axisRange = range else {
             return .month

        case .ha1c:
            x.orthogonalPosition = 5.0
        }

        // one day per minor tick
        x.minorTicksPerInterval = UInt(DAYS_IN_ONE_WEEK) - 1
        x.labelExclusionRanges  = [
            //CPTPlotRange(location: 0.99, length: 0.02),
            //CPTPlotRange(location: 1.99, length: 0.02),
            //CPTPlotRange(location: 2.99, length: 0.02)
        ]
    }

    func configureAxis(y: CPTXYAxis, trend: Trend) {

                + (0.1 * range.lengthDouble)))
            axisSet.xAxis?.labelFormatter = xLabelFormatter(range: range)

            if let xAxis = axisSet.xAxis {
                let rangeScale = TrendViewController.rangeScale(range: range)
                configureAxisIntervals(x: xAxis, rangeScale: rangeScale)
            }

        } else if (coordinate == CPTCoordinate.Y) && (trend != nil) {

            // keep original range, don't change to newRange
