| | |
| | | itemStyle: { |
| | | color: 'rgb(180, 180, 180)' |
| | | } |
| | | }, |
| | | },{ |
| | | name: '电耗2', |
| | | type: 'bar', |
| | | barWidth: '40%', |
| | | data: [220, 152, 200, 334, 390, 330, 220], |
| | | itemStyle: { |
| | | color: 'rgb(30, 144, 255)' |
| | | } |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | |
| | | |
| | | this.val.yAxis[0].name="电耗"; |
| | | this.val.series[0].name='电耗(kw.h)' |
| | | this.val.series[1].name='电耗(kw.h)1' |
| | | for(let i in this.machineElectric){ |
| | | dianhao.push(this.machineElectric[i]["0_jiqidianliang"]); |
| | | shijian.push(this.machineElectric[i]["1_date"]); |
| | |
| | | this.val.series[0].itemStyle.color='rgb(84,112,198)' |
| | | this.val.xAxis[0].data=datashijian; |
| | | this.val.series[0].data=dianhao; |
| | | this.val.series[1].data=dianhao; |
| | | HisArr.setOption(this.val); |
| | | this.loading=false |
| | | }, |
| | | }, |
| | | echarsInit1(){ |
| | | var datashijian=[]; |
| | | var s=7; |