From a910263ee803126d79c29fc324e38c2e6dd9103d Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 20 Dec 2023 14:11:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E5=88=86=E7=BB=84?= =?UTF-8?q?=E5=A0=86=E5=8F=A0=E6=9F=B1=E7=8A=B6=E5=9B=BE):=20=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=98=BE=E7=A4=BA=E5=88=86=E7=BB=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/chart/common/common_antv.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/views/chart/chart/common/common_antv.js b/core/frontend/src/views/chart/chart/common/common_antv.js index 44bf308322..b112f96a25 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -344,6 +344,9 @@ export function getTooltip(chart) { // tooltip value formatter if (chart.type && chart.type !== 'waterfall') { + if (chart.type === 'bar-group-stack') { + tooltip.fields = [] + } tooltip.formatter = function(param) { let res = param.value @@ -455,7 +458,7 @@ export function getTooltip(chart) { } else { let name = '' if (param.group) { - name = param.name + '-' + name = param.group + '-' } if (param.category) { name += param.category