From adf1d1b7c6e1c4758e358056ae0e9bb5c090a812 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 8 Aug 2022 11:57:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E5=A0=86=E5=8F=A0?= =?UTF-8?q?=E5=9B=BElabel=EF=BC=8Ctooltip=E5=81=B6=E5=B0=94=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/common/common_antv.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/chart/chart/common/common_antv.js b/frontend/src/views/chart/chart/common/common_antv.js index f7676efa51..71d2161ec7 100644 --- a/frontend/src/views/chart/chart/common/common_antv.js +++ b/frontend/src/views/chart/chart/common/common_antv.js @@ -143,7 +143,7 @@ export function getLabel(chart) { yAxis = JSON.parse(JSON.stringify(chart.yaxis)) } - if (chart.type === 'bar-stack' || chart.type === 'line-stack') { + if (chart.type === 'bar-stack' || chart.type === 'line-stack' || chart.type === 'bar-stack-horizontal') { const f = yAxis[0] if (f.formatterCfg) { res = valueFormatter(param.value, f.formatterCfg) @@ -196,7 +196,7 @@ export function getTooltip(chart) { } let obj - if (chart.type === 'bar-stack' || chart.type === 'line-stack') { + if (chart.type === 'bar-stack' || chart.type === 'line-stack' || chart.type === 'bar-stack-horizontal') { obj = { name: param.category, value: param.value } const f = yAxis[0] if (f.formatterCfg) {