| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | public aqiChartOption = {}; |
| | | public aqiEchartsIntance; |
| | | public aqiChartLoading = false; |
| | |
| | | public meteChartOption = {}; |
| | | public meteEchartsIntance; |
| | | public meteChartLoading = false; |
| | | private onMeteChartInit(e): void { |
| | | public onMeteChartInit(e): void { |
| | | this.meteEchartsIntance = e; |
| | | } |
| | | private reloadAqiChart(): void { |
| | | // const timeList = this.grid.columns.map(item => item.text); |
| | | // const timeList = this.grid.columns.map(item => item.text); |
| | | if (!!this.aqiEchartsIntance) { |
| | | this.aqiChartOption = null; |
| | | this.aqiEchartsIntance.clear(); |
| | |
| | | // if ( this.chartSelectedIndex < this.grid.data.length ) { |
| | | // series = [{type: 'line', data: this.grid.data[this.chartSelectedIndex]}]; |
| | | // } |
| | | |
| | | |
| | | // this.initOpton(chartOption ,{ xAxis : [{data : []}]}); |
| | | // this.aqiChartOption = true; |
| | | this.initOpton(this.aqiChartOption ,{ xAxis : [{data : this.newArray(0, 24, null, '时')}]}); |