fixes #4578 - correct the way dim_props created (#4587)

This commit is contained in:
Kanva Bhatia 2025-01-06 04:23:39 +05:30 committed by GitHub
parent dcdcbfd833
commit ab4e05be34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,8 +85,8 @@ class ChartBase(RechartsCharts):
cls._ensure_valid_dimension("height", height)
dim_props = {
"width": width or "100%",
"height": height or "100%",
"width": width if width is not None else "100%",
"height": height if height is not None else "100%",
}
# Provide min dimensions so the graph always appears, even if the outer container is zero-size.
if width is None: