diff --git a/src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts b/src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts index f5998ff..941f008 100644 --- a/src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts +++ b/src/app/examiner/statistic-analysis/examStatistics/echarts/echarts.component.ts @@ -120,7 +120,7 @@ export class EchartsComponent implements OnInit { this.color = "#FF8678"; } let myChart = echarts.init(document.getElementById("zhidui")); - myChart.clear(); + myChart.dispose(); this.initCharts(); } //后退 @@ -238,12 +238,12 @@ export class EchartsComponent implements OnInit { if (e.name.indexOf("支队") != -1) { this.zhiData = this.daData; this.level = 1; - myChart.clear(); + myChart.dispose(); this.initCharts(); } else if (e.name.indexOf("大队") != -1) { this.zhiData = this.jiuData; this.level = 2; - myChart.clear(); + myChart.dispose(); this.initCharts(); } else { window.open("home/statistic-examination/station-examinee");