| | |
| | | import {environment} from '../../../environments/environment';
|
| | | import {environment} from '@env/environment';
|
| | | import {HttpClient} from '@angular/common/http';
|
| | | import {Component, OnInit} from '@angular/core';
|
| | | import {_HttpClient} from '@delon/theme';
|
| | |
| | | };
|
| | | return [
|
| | | params[0].value[0],
|
| | | '风速:' + params[0].value[1] + '节',
|
| | | '风速:' + params[0].value[1],
|
| | | '风向:' + directionName[params[0].value[2]]
|
| | | ].join('<br>');
|
| | | }
|
| | |
| | | boundaryGap: true
|
| | | },
|
| | | yAxis: {
|
| | | name: '风速(节)'
|
| | | name: '风速(m/s)'
|
| | | },
|
| | | series: [
|
| | | {
|
| | |
| | | this.isShow = true;
|
| | | this.initWarning();
|
| | | } else {
|
| | | this.isShow = false;
this.initForecasting();
|
| | | this.isShow = false;
|
| | | this.initForecasting();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | this.option.title.text = title + '(温度)';
|
| | | this.option.yAxis.name = '单位:℃';
|
| | | this.option.series[0].data = temp;
|
| | | this.option.series[0].itemStyle.color = this.colors[0];
forecasting_tempChart.setOption(this.option, false);
|
| | | this.option.series[0].itemStyle.color = this.colors[0];
|
| | | forecasting_tempChart.setOption(this.option, false);
|
| | |
|
| | | const forecasting_humidityChart = echarts.init(document.getElementById('forecasting_humidity'));
|
| | | this.option.title.text = title + '(湿度)';
|