changeset 122:6e1cebd56cb1

Merge pull request #19 from JannikArndt/patch-1 Small README fixes committer: GitHub <noreply@github.com>
author Dennis C. M. <dennis@denniscm.com>
date Mon, 30 Aug 2021 14:00:46 +0100
parents 462fb542f386 (current diff) 6d53542f6f9e (diff)
children a618b966f93a
files
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Mon Aug 09 17:09:20 2021 +0100
+++ b/README.md	Mon Aug 30 14:00:46 2021 +0100
@@ -27,8 +27,8 @@
 ```swift
 LineChartController(
     prices: [Double],
-    dates: [String],
-    hours: [String],
+    dates: [String]?, // format: yy-MM-dd
+    hours: [String]?, // has to correspond to dates
     labelColor: Color,
     indicatorPointColor: Color,
     showingIndicatorLineColor: Color,
@@ -68,16 +68,16 @@
         RoundedRectangle(cornerRadius: 25)
             .frame(width: 400, height: 120)
             .foregroundColor(.white)
-            .shadow(color: Color(,.gray).opacity(0.15), radius: 10)
+            .shadow(color: Color(.gray).opacity(0.15), radius: 10)
             .overlay(
                 VStack(alignment: .leading) {
                     Text("Dennis Concepcion")
                         .font(.title3)
                         .fontWeight(.semibold)
-
+                    
                     Text("Random guy")
                     
-                    CapsuleChartView(percentageOfWidth: 0.6)
+                    CapsuleChartView(percentageOfWidth: 0.6, style: CapsuleChartStyle(capsuleColor: Color.blue))
                         .padding(.top)
                 }
                 .padding()