From 05508723b0e6b807e870ff41db0381c5ce5baef1 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, 30 Sep 2022 14:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=AA=E5=90=91=E6=9F=B1?= =?UTF-8?q?=E7=8A=B6=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/common/echarts.common.js | 4 ++++ 1 file changed, 4 insertions(+) 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 8fa2524..b67df25 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -176,6 +176,10 @@ const horizontalBarChart = (res, ids) => { textBorderWidth: 2, position:'insideTopLeft', padding: [-20, 0, 0, 0], + formatter:function (params) { + console.log(dataFormat(xValue)[params[`dataIndex`]]) + return dataFormat(xValue)[params[`dataIndex`]].value + } }, }, {