From 44979e710fa2b328011547b50add6502738cda71 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 5 Mar 2025 16:43:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E5=BA=A6=E5=9C=A8=E6=B8=90=E5=8F=98=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8B=E4=BB=85=E5=AF=B9=E4=B8=8A=E5=8D=8A=E9=83=A8?= =?UTF-8?q?=E5=88=86=E8=B5=B7=E4=BD=9C=E7=94=A8=20#14761?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/common/common_antv.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 6dcc62672b..9401dc5965 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -900,7 +900,9 @@ export function getLineDash(type) { */ export function setGradientColor(rawColor: string, show = false, angle = 0, start = 0) { const item = rawColor.split(',') - item.splice(3, 1, '0.3)') + const alpha = parseFloat(item[3].replace(')', '')) + const startAlpha = alpha * 0.3 + item.splice(3, 1, `${startAlpha})`) let color: string if (start == 0) { color = `l(${angle}) 0:${item.join(',')} 1:${rawColor}`