Advertisement
Don_Mag

Untitled

Sep 3rd, 2023
1,236
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.41 KB | None | 1 0
  1.  
  2.     func chartViewStockClose(with timeFrame: TimeFrame) {
  3.         print("chartViewStockClose called") // Debug
  4.        
  5.         // generate some sample close values
  6.         var closeVals: [Double] = []
  7.    
  8.         // steep curve
  9.         closeVals = [10, 16, 12, 15, 14, 13, 11]
  10.        
  11.         // shallow line
  12.         //closeVals = [10, 11, 12, 13, 14, 15, 16]
  13.        
  14.         closeVals.forEach { v in
  15.             ArrayStockClose.append(("", v))
  16.         }
  17.        
  18.         initializeGraph()
  19.     }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement