From 0304f0d5220f11cb1aecefda82e2a993532f0c57 Mon Sep 17 00:00:00 2001 From: tangying1027 <33517362+tangying1027@users.noreply.github.com> Date: Tue, 14 Mar 2023 20:22:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8B=E4=BB=B6=E8=8C=83=E5=9B=B4=20(?= =?UTF-8?q?#1756)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xuying.xu --- packages/f2/src/chart/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/f2/src/chart/index.tsx b/packages/f2/src/chart/index.tsx index cd1ca9243..b17e0de79 100644 --- a/packages/f2/src/chart/index.tsx +++ b/packages/f2/src/chart/index.tsx @@ -319,14 +319,14 @@ class Chart< } render() { - const { props, scale } = this; + const { props, scale, layout: chartLayout } = this; const { children, data: originData } = props; if (!originData) return null; const data = this._getRenderData(); const layout = this.getLayout(); const coord = this.getCoord(); const scaleOptions = scale.getOptions(); - const { width, height } = layout; + const { width, height } = chartLayout; return (