Jon Fawcett 6 lat temu
rodzic
commit
059e48ceba
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      LoopFollow/Controllers/Graphs.swift

+ 2 - 1
LoopFollow/Controllers/Graphs.swift

@@ -253,7 +253,8 @@ extension MainViewController {
         
         // Set Colors
         let lineBG = BGChart.lineData!.dataSets[dataIndex] as! LineChartDataSet
-        lineBG.resetColors()
+        lineBG.colors.removeAll()
+        lineBG.circleColors.removeAll()
         if colors.count > 0 {
             print("graph colors")
             for i in 1..<colors.count{