xufenglei
2018-07-16 ac15da5faadd28ece3c3878ce3030f9eb8d44e72
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 = '空气质量因子';