From 7f21621b0552af430ada4201520d2c8184d9275d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 6 Jan 2023 12:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E8=A1=A8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/common/echarts.common.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/productionboard/src/main/resources/static/js/common/echarts.common.js b/productionboard/src/main/resources/static/js/common/echarts.common.js index 2794652..31b46cc 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -2201,6 +2201,10 @@ const energyConsumption = (res, ids) => { bottom: '3%', containLabel: true }, + tooltip:{ + trigger :'axis', + formatter:'{a0} {c0}(t)
{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],