diff --git a/packages/amis/src/renderers/Chart.tsx b/packages/amis/src/renderers/Chart.tsx index cd8a4a305..bae66492f 100644 --- a/packages/amis/src/renderers/Chart.tsx +++ b/packages/amis/src/renderers/Chart.tsx @@ -597,7 +597,7 @@ export class Chart extends React.Component { } = this.props; let style = this.props.style || {}; style.width = style.width || width || '100%'; - style.height = style.width || height || '300px'; + style.height = style.height || height || '300px'; const styleVar = buildStyle(style, data); return (