         configurePaddings(graph: newGraph)
         if trend != nil {
             configurePlotSpace(graph: newGraph, trend: trend!)
-            configureAxes(graph: newGraph)
+            configureAxes(graph: newGraph, trend: trend!)
 
             let boundLinePlot = styledPlot(trend: trend!)
             boundLinePlot.dataSource = self

    }

    class func globalYRange(trend: Trend) -> CPTPlotRange {
        let length = NSNumber(value:TrendViewController.rangeMaximum(trend: trend)
            + TrendViewController.xAxisLabelHeight(trend: trend))
        let range = CPTPlotRange(location: NSNumber(value: -xAxisLabelHeight(trend: trend)),
                                 length: length)
        return range
    }
    

            x.majorTickLineStyle = TrendViewController.lineStyleThinWhite()
            x.minorTickLineStyle = TrendViewController.lineStyleThinWhite()
            x.majorIntervalLength   = TrendViewController.minutesPerWeek as NSNumber?

            // x axis located at y coordinate == x.orthogonalPosition
            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  = [
