From d25a6a93ada9e666d8ffef7f2c5d18167fad35c7 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 10 Sep 2020 16:15:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20resize=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/statistic-analysis/home/home.component.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/app/statistic-analysis/home/home.component.ts b/src/app/statistic-analysis/home/home.component.ts index 40d74b9..50f6d9b 100644 --- a/src/app/statistic-analysis/home/home.component.ts +++ b/src/app/statistic-analysis/home/home.component.ts @@ -39,16 +39,9 @@ export class HomeComponent implements OnInit { //更新echarts视图 updateEcharts(){ - this.planState.clear() - this.planState.dispose() - this.chartDwsjcj.clear() - this.chartDwsjcj.dispose() - this.chartZdgzqy.clear() - this.chartZdgzqy.dispose() - - this.unitType() - this.unitData() - this.keyUnit() + this.planState.resize() + this.chartDwsjcj.resize() + this.chartZdgzqy.resize() }