添加图表提示层

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

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

Loading…
Cancel
Save