             x.majorTickLineStyle = TrendViewController.lineStyleThinWhite()
             x.minorTickLineStyle = TrendViewController.lineStyleThinWhite()
             x.majorIntervalLength   = TrendViewController.minutesPerWeek as NSNumber?
+
             // x axis located at y coordinate == x.orthogonalPosition
-            x.orthogonalPosition    = 0.0
+            switch trend {
+            case .bg:
+                x.orthogonalPosition = 0.0
+            case .ha1c:
+                x.orthogonalPosition = 5.0
+            }
+
             // one day per minor tick
             x.minorTicksPerInterval = UInt(DAYS_IN_ONE_WEEK) - 1
             x.labelExclusionRanges  = [


            // y axis located at x coordinate == y.orthogonalPosition
            y.orthogonalPosition    = 0.0
            y.labelExclusionRanges  = [
                //CPTPlotRange(location: 0.99, length: 0.02),
                //CPTPlotRange(location: 1.99, length: 0.02),
                //CPTPlotRange(location: 3.99, length: 0.02)
            ]

            guard let trendUnwrapped = trend else { return }
            switch trendUnwrapped {
            case .bg:
                y.majorIntervalLength   = 10
                y.minorTicksPerInterval = 1

    }

    class func globalYRange(trend: Trend) -> CPTPlotRange {

        let location = NSNumber(value: TrendViewController.rangeMinimum(trend: trend)
            - xAxisLabelHeight(trend: trend))
        
        let length = NSNumber(value:TrendViewController.rangeMaximum(trend: trend)
            - TrendViewController.rangeMinimum(trend: trend)
            + TrendViewController.xAxisLabelHeight(trend: trend))

        let range = CPTPlotRange(location: location, length: length)
        return range
    }
    
