From 199babac341e32f138ec6dd4cb0cda777e5433e9 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 14:15:17 +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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 31b46cc..91c8a58 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -2203,7 +2203,6 @@ const energyConsumption = (res, ids) => { }, tooltip:{ trigger :'axis', - formatter:'{a0} {c0}(t)
{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",