We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b45327 commit 54b545bCopy full SHA for 54b545b
1 file changed
DevLog/UI/Profile/ProfileTrendChartView.swift
@@ -52,10 +52,6 @@ struct ProfileTrendChartView: View {
52
)
53
.chartXAxis {
54
AxisMarks(values: axisWeekIndices) { value in
55
- AxisGridLine(stroke: StrokeStyle(lineWidth: 0.5))
56
- .foregroundStyle(.quaternary)
57
- AxisTick(stroke: StrokeStyle(lineWidth: 0.5))
58
59
AxisValueLabel {
60
if let weekIndex = value.as(Int.self) {
61
Text(
@@ -68,6 +64,12 @@ struct ProfileTrendChartView: View {
68
64
.fixedSize()
69
65
}
70
66
67
+ if let weekIndex = value.as(Int.self), weekIndex != xDomain.upperBound {
+ AxisGridLine(stroke: StrokeStyle(lineWidth: 0.5))
+ .foregroundStyle(.quaternary)
+ AxisTick(stroke: StrokeStyle(lineWidth: 0.5))
71
72
+ }
73
74
75
.chartYAxis {
0 commit comments