Skip to content

Commit d47b396

Browse files
Merge pull request #1 from linqingmo/main
fix a bug
2 parents 7e11b31 + ee7faee commit d47b396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GithubContributionGraphExample/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct ContentView: View {
2424
content
2525
.aspectRatio(aspectRatio, contentMode: .fit)
2626
}
27-
.chartForegroundStyleScale(range: Gradient(colors: colors))
27+
.chartForegroundStyleScale(domain: 0...10, range: Gradient(colors: colors))
2828
.chartXAxis {
2929
AxisMarks(position: .top, values: .stride(by: .month)) {
3030
AxisValueLabel(format: .dateTime.month())

0 commit comments

Comments
 (0)