diff InteractiveCharts/LineChart/Helpers/ChartLabel.swift @ 8:959175ee5ebd

Implement interaction with ChartView
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Mon, 26 Apr 2021 23:06:42 +0200
parents f828c7c408d4
children
line wrap: on
line diff
--- a/InteractiveCharts/LineChart/Helpers/ChartLabel.swift	Mon Apr 26 23:06:25 2021 +0200
+++ b/InteractiveCharts/LineChart/Helpers/ChartLabel.swift	Mon Apr 26 23:06:42 2021 +0200
@@ -26,9 +26,9 @@
                     Text(hour)
                 }
                 Text("\(data[indexPosition], specifier: "%.2f")")
-//                    .foregroundColor(colour)
+                    .foregroundColor(Color(.systemBlue))
             }
-            .font(.subheadline)
+            .font(.headline)
         }
     }
     
@@ -48,9 +48,3 @@
         return finalDate
     }
 }
-
-struct Label_Previews: PreviewProvider {
-    static var previews: some View {
-        ChartLabel(data: [10.0, 11.1, 10.5, 10.0, 11.9, 11.7, 10.4, 10.9], indexPosition: .constant(0))
-    }
-}