We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba7163 commit 80786c6Copy full SHA for 80786c6
Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift
@@ -55,10 +55,11 @@ internal struct RotatedText<ChartData>: View where ChartData: CTLineBarChartData
55
Color.clear
56
.onAppear {
57
finalFrame = geo.frame(in: .local)
58
- chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
59
if rotation == .degrees(0) || rotation == .radians(0) {
+ chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).height)
60
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).width)
61
} else {
62
+ chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
63
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).height)
64
}
65
0 commit comments