添加图表提示层

master
夜笙歌 2 years ago
parent 7f21621b05
commit 199babac34

@ -2203,7 +2203,6 @@ const energyConsumption = (res, ids) => {
},
tooltip:{
trigger :'axis',
formatter:'{a0} {c0}(t)<br />{a1} {c1}(kw·h)'
},
xAxis: [
{
@ -2282,7 +2281,7 @@ const energyConsumption = (res, ids) => {
},
tooltip: {
valueFormatter: function (value) {
return value + ' ml';
return value + ' t';
}
},
barWidth: 20,
@ -2294,7 +2293,7 @@ const energyConsumption = (res, ids) => {
yAxisIndex: 1,
tooltip: {
valueFormatter: function (value) {
return value + ' °C';
return value + ' kw·h';
}
},
lineStyle: {
@ -2322,6 +2321,9 @@ const energyConsumption = (res, ids) => {
},
},
},
tooltip: {
show:false,
},
label: {
show: true,
position: "top",

Loading…
Cancel
Save