fix(core): remove height and width requirement on SuperChart (#1176)

* fix(core): remove height and width requirement on SuperChart

* simply by removing state
This commit is contained in:
Ville Brofeldt
2021-06-17 09:31:07 +03:00
committed by Yongjie Zhao
parent 130e8a0214
commit 1bd2ff6abd

View File

@@ -185,8 +185,6 @@ export default class SuperChart extends React.PureComponent<Props, {}> {
<BoundingBox>
<ParentSize debounceTime={debounceTime}>
{({ width, height }) =>
width > 0 &&
height > 0 &&
this.renderChart(
widthInfo.isDynamic ? Math.floor(width) : widthInfo.value,
heightInfo.isDynamic ? Math.floor(height) : heightInfo.value,