| | |
| | | <template> |
| | | <div id="toadyLine" style="width:90%;height:360px;margin: 0 auto;"> |
| | | <div id="inspectionUnusual" style="width:90%;height:360px;margin: 0 auto;"> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | methods:{ |
| | | async drawTodayLine(){ |
| | | this.timeData = [1,2,3,4,] |
| | | this.numData = [2,5,7,9] |
| | | let myChart = this.$echarts.init(document.getElementById('toadyLine')) |
| | | this.timeData = ['2022-4-1', '2022-4-2', '2022-4-4', '2022-4-4', '2022-4-5', '2022-4-6', '2022-4-7'] |
| | | this.numData = [2,5,7,9,1,15,6] |
| | | let myChart = this.$echarts.init(document.getElementById('inspectionUnusual')) |
| | | myChart.setOption({ |
| | | xAxis: { |
| | | type: 'category', |