diff --git a/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift b/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift index d1375c35..cf5a2332 100644 --- a/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift +++ b/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift @@ -71,6 +71,7 @@ internal struct XAxisChartDataCell: View where ChartData: CTLineBarCh } } ) + .fixedSize(horizontal: true, vertical: false) .onAppear { chartData.viewData.xAxisLabelHeights.append(height) }