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
[Just posting it as it's something I struggled with but everything is working fine when setting fixed height values]
It would be comfortable to set the div parent of a responsive container to take the remaining space of another div parent element:
Example: here I'm using the flex-1 short cut from tailwind to take the remaining space from the parent div. Apparently with this setup, the chart does not show up.
[Just posting it as it's something I struggled with but everything is working fine when setting fixed height values]
The text was updated successfully, but these errors were encountered:
MiguelG97
changed the title
responsive container infers the parent div height
responsive container infers the parent div height [low priority]
May 11, 2024
Hi! It's documented that the responsive container requires one of width or height to be a static value (usually height). Understood that this isn't always ideal but I don't think there's a way to make things happy otherwise. If you have any ideas feel free to mention them here or contribute!
[Just posting it as it's something I struggled with but everything is working fine when setting fixed height values]
It would be comfortable to set the div parent of a responsive container to take the remaining space of another div parent element:
Example: here I'm using the flex-1 short cut from tailwind to take the remaining space from the parent div. Apparently with this setup, the chart does not show up.
Instead I needed to explicitly type the height class name as h-[230px] in the nearest div parent to show up the chart
"recharts": "^2.12.6",
[Just posting it as it's something I struggled with but everything is working fine when setting fixed height values]
The text was updated successfully, but these errors were encountered: