         }
         return yVals
     }
-    
     
     func getChartDataForRange(range: HealthManagerStatisticsRangeType, type: ChartType, values: [Double], minValues: [Double]?) -> ChartData {
         switch range {

    
    //MARK: Prepate chart data
    func convertStatisticsValues(stisticsValues: [Double], forRange range: HealthManagerStatisticsRangeType) -> [ChartDataEntry] {
        let indexIncrement = range == .Month ? 2 : 1;
        var yVals: [ChartDataEntry] = []
        
        for (index, value) in stisticsValues.enumerate() {

    
    func getYValuesForScatterChart (minValues: [Double], maxValues: [Double], period: HealthManagerStatisticsRangeType) -> [ChartDataEntry] {
        var yVals: [ChartDataEntry] = []
        let indexIncrement = period == .Month || period == .Year ? 2 : 1;
        for (index, minValue) in minValues.enumerate() {
            let maxValue = maxValues[index]
            if maxValue > 0 && minValue > 0 {
