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' },