From ac15da5faadd28ece3c3878ce3030f9eb8d44e72 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 16 Jul 2018 16:06:27 +0800 Subject: [PATCH] 更新 --- src/app/routes/forecasting-warning/forecasting-warning.component.ts | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/routes/forecasting-warning/forecasting-warning.component.ts b/src/app/routes/forecasting-warning/forecasting-warning.component.ts index 8f287e6..80765ba 100644 --- a/src/app/routes/forecasting-warning/forecasting-warning.component.ts +++ b/src/app/routes/forecasting-warning/forecasting-warning.component.ts @@ -64,7 +64,8 @@ } initForecasting() { - this.option.legend = {}; + delete this.option.series[1]; + delete this.option['legend']; this.option.xAxis.data = []; const temp = []; const humidity = []; @@ -136,7 +137,7 @@ this.option.series[0].name = '������������'; this.option.yAxis.name = '������������'; this.option.title.text = '���������������(������)'; - this.option.legend = { + this.option['legend'] = { right: '10%', data: ['������������', '������������'] }, @@ -146,7 +147,8 @@ } initWarning() { - this.option.legend = {}; + delete this.option.series[1]; + delete this.option['legend']; this.isShow = true; const PM2_5 = []; const PM10 = []; const CO = []; const NO2 = []; const O3 = []; const SO2 = []; const title = '������������������'; -- Gitblit v1.8.0