 
             // 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 {
+            switch trend {
             case .bg:
                 y.majorIntervalLength   = 10
                 y.minorTicksPerInterval = 1

        configurePaddings(graph: newGraph)
        if trend != nil {
            configurePlotSpace(graph: newGraph, trend: trend!)
            configureAxes(graph: newGraph)

            let boundLinePlot = styledPlot(trend: trend!)
            boundLinePlot.dataSource = self

    }

    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
    }
    
