添加图表提示层

master
夜笙歌 2 years ago
parent 2780abae8a
commit 7f21621b05

@ -2201,6 +2201,10 @@ const energyConsumption = (res, ids) => {
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },
tooltip:{
trigger :'axis',
formatter:'{a0} {c0}(t)<br />{a1} {c1}(kw·h)'
},
xAxis: [ xAxis: [
{ {
interval: 0, interval: 0,
@ -2211,6 +2215,7 @@ const energyConsumption = (res, ids) => {
} }
} }
], ],
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
@ -2305,7 +2310,7 @@ const energyConsumption = (res, ids) => {
data: yAxisDataTwo, data: yAxisDataTwo,
}, },
{ {
name: "柱顶部", name: "",
type: "pictorialBar", type: "pictorialBar",
symbolSize: [20, 6], symbolSize: [20, 6],
symbolOffset: [0, -3], symbolOffset: [0, -3],

Loading…
Cancel
Save