You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/charts/CLAUDE.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,23 +192,25 @@ import { BarChartPlaceholder } from '@ui5/webcomponents-react-charts/BarChartPla
192
192
193
193
## ResponsiveBehavior
194
194
195
-
Chartsdefaultto`width: 100%`and`height: 400px`.
195
+
Chartsdefaultto`width: 100%`and`height: 400px`, so they render out of the box without container configuration.
196
196
197
-
**Important:**Chartsrequireacontainerwith**fixeddimensions**. Theywon't render correctly in containers that derive size from their children (e.g., `height: auto`, flex without explicit height):
197
+
**Important:**Ifyouoverridechartdimensionswithrelativevalues (e.g., `height: '100%'`), the container must have fixed dimensions. Charts won't render correctly in containers that derive size from their children:
198
198
199
199
```tsx
200
-
// ❌ Won't work - parent has no fixed height
200
+
// ❌ Won't work - chart uses 100% height but parent has no fixed height
0 commit comments