From fc98719cb06e8ee0f761f35aeb5f6c49dc4b8210 Mon Sep 17 00:00:00 2001 From: Anshi Date: Fri, 15 Jun 2018 14:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=B9=E5=99=A8=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E4=BF=AE=E6=94=B9=E5=90=8E=E7=BB=98=E5=9B=BE=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E6=B2=A1=E6=9C=89=E6=94=B9=E5=8F=98=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Echarts/renderChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Echarts/renderChart.js b/src/components/Echarts/renderChart.js index c11ced1..82c0a48 100644 --- a/src/components/Echarts/renderChart.js +++ b/src/components/Echarts/renderChart.js @@ -18,7 +18,7 @@ export default function renderChart(props,isFirst) { document.getElementById('main').style.height = "${height}"; document.getElementById('main').style.width = "${width}"; myChart.clear(); - myChart.resize({width:${width},height:${height}}); + myChart.resize(); myChart.setOption(${toString(props.option)}); ` }