diff --git a/src/app/statistic-analysis/home/home.component.ts b/src/app/statistic-analysis/home/home.component.ts index 9885dc8..a0d8915 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() }