|
@@ -76,7 +76,11 @@ export default {
|
|
|
trigger: "axis",
|
|
|
axisPointer: {
|
|
|
type: "shadow"
|
|
|
+ },
|
|
|
+ formatter:function(params){
|
|
|
+ return params[0].name +'<br/> Legend'+params[0].seriesName+'<br/>'+'<i class="icon1"></i> 室内温度:'+params[1].value +'% <br/>'+'<i class="icon2"></i>节能率:'+params[2].value+'%'
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
grid: {
|
|
|
right: "5%",
|
|
@@ -148,10 +152,8 @@ export default {
|
|
|
},
|
|
|
splitLine: {
|
|
|
show: false
|
|
|
- },
|
|
|
-
|
|
|
+ },
|
|
|
position: "left",
|
|
|
-
|
|
|
axisLabel: {
|
|
|
formatter: "{value} %"
|
|
|
}
|
|
@@ -237,7 +239,9 @@ export default {
|
|
|
color: #000000;
|
|
|
text-align: center;
|
|
|
margin-top: 20px;
|
|
|
- .icon1 {
|
|
|
+
|
|
|
+ }
|
|
|
+ .icon1 {
|
|
|
display: inline-block;
|
|
|
width: 12px;
|
|
|
height: 12px;
|
|
@@ -283,6 +287,5 @@ export default {
|
|
|
margin-right: 3px;
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
</style>
|