Mercurial > public > stock-charts
changeset 121:6d53542f6f9e
Small README fixes
Hi! 👋
I just tried out this lib. It's really easy to integrate 👍
There are two compile errors in the Capsule Chart example, and the `dates` and `hours` in the `LineChartController` would be less surprising with a small comment.
Here's my proposal how to make it even easier to get started 😊
Best
Jannik
committer: GitHub <noreply@github.com>
author | Jannik Arndt <jannik@jannikarndt.de> |
---|---|
date | Sun, 29 Aug 2021 13:40:06 +0200 |
parents | 462fb542f386 |
children | 6e1cebd56cb1 |
files | README.md |
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 Sun Aug 29 13:40:06 2021 +0200 @@ -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()