From a4bb7b661481f4e48bfd98b1af816619d6d4e49a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 27 May 2026 18:10:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=A1=AB=E5=85=85=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=87=BD=E6=95=B0=E5=92=8C=E9=9D=99=E6=80=81?= =?UTF-8?q?=E5=80=BC=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=9E=81=E5=80=BC=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=B8=8B=E7=9A=84=E6=A0=B7=E5=BC=8F=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/extremumUitl.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts index 744a4db5c1..5af1e1656c 100644 --- a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts +++ b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts @@ -98,10 +98,17 @@ export const extremumEvt = ( .forEach(item => { item.labels.forEach(label => { const oldPosition = label.position || 'top' + const oldFill = label.style?.fill label.style = { ...label.style, fill: data => { if (data.extremum) return '' + if (typeof oldFill === 'function') { + return oldFill(data) + } + if (oldFill) { + return oldFill + } const cfg = isSeriesLabel ? formatterMap[data.quotaList?.[0]?.id] : labelAttr return cfg?.color ?? '#000' },