| | |
| | | String s3 = string.split(StringUtils.SPACE)[1]; |
| | | if (StringUtils.isNotEmpty(s3)){ |
| | | int i = Integer.parseInt(s3); |
| | | temp.put(i,size); |
| | | temp.put(i+1,size); |
| | | } |
| | | } |
| | | } |
| | | for (int i = 8; i < 23; i++) { |
| | | arr.add(temp.getOrDefault(i, 0)); |
| | | if (i==8){ |
| | | arr.add(0); |
| | | }else { |
| | | arr.add(temp.getOrDefault(i, 0)); |
| | | } |
| | | } |
| | | vo.setData(arr); |
| | | vo.setType("line"); |
| | |
| | | boundaryGap: false, |
| | | axisTick: { |
| | | show: false |
| | | } |
| | | }, |
| | | type: 'category', |
| | | axisLabel: { |
| | | interval: 0, |
| | | rotate: 45, |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: 10, |
| | | right: 10, |
| | | left: 20, |
| | | right: 20, |
| | | bottom: 20, |
| | | top: 30, |
| | | containLabel: true |
| | |
| | | yAxis: { |
| | | axisTick: { |
| | | show: false |
| | | } |
| | | }, |
| | | min:0, |
| | | max: this.data.length === 0 ? 100 : null |
| | | }, |
| | | legend: { |
| | | data: this.legendTitle |
| | |
| | | <span class="nextLine">{{data1}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="transition-box" style="background-color: cornflowerblue"> |
| | | <div class="transition-box" style="background-color: orange"> |
| | | <i class="el-icon-setting"></i> |
| | | <el-divider direction="vertical" content-position="left" style="height: 20px"></el-divider> |
| | | <div> |
| | |
| | | <span class="nextLine">{{data3}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="transition-box" style="background-color: green"> |
| | | <div class="transition-box" style="background-color: cornflowerblue"> |
| | | <i class="el-icon-cpu"></i> |
| | | <el-divider direction="vertical" content-position="left" style="height: 20px"></el-divider> |
| | | <div> |
| | |
| | | <span class="nextLine">{{data4}}</span> |
| | | </div> |
| | | </div> |
| | | <div class="transition-box" style="background-color: orange"> |
| | | <div class="transition-box" style="background-color: green"> |
| | | <i class="el-icon-upload2"></i> |
| | | <el-divider direction="vertical" content-position="left" style="height: 20px"></el-divider> |
| | | <div> |