                         newLabels.insert(newLabel)
                     }
                 }
-                
+
                 axis.axisLabels = newLabels
             }
         }


import UIKit

class TrendViewController : UIViewController, CPTScatterPlotDataSource, CPTAxisDelegate {
    private var scatterGraph : CPTXYGraph? = nil

    typealias plotDataType = [CPTScatterPlotField : Double]
    private var dataForPlot = [plotDataType]()

    @IBOutlet var hostingView: CPTGraphHostingView!


        self.scatterGraph = newGraph
    }

}

extension TrendViewController: CPTBarPlotDataSource, CPTBarPlotDelegate {

    /** @brief @required The number of data points for the plot.
     *  @param plot The plot.
     *  @return The number of data points for the plot.
     **/
    func numberOfRecords(for plot: CPTPlot) -> UInt
    {
        return UInt(self.dataForPlot.count)
