添加图表提示层

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

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

Loading…
Cancel
Save