From d4219412c4223d644b7ed6b2ae2e3bc170ef9680 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 17 Sep 2025 17:51:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8F=8C=E8=BD=B4=E5=9B=BE=E6=A8=AA=E8=BD=B4=E5=92=8C=E5=9B=BE?= =?UTF-8?q?=E4=BE=8B=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E6=A8=A1=E7=B3=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/g2/mix/mix-dual-line.ts | 5 ++++- .../chart/components/js/panel/charts/g2/mix/mix-group.ts | 5 ++++- .../chart/components/js/panel/charts/g2/mix/mix-stack.ts | 5 ++++- .../src/views/chart/components/js/panel/charts/g2/mix/mix.ts | 1 + .../src/views/chart/components/js/panel/types/impl/g2.ts | 2 ++ 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-dual-line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-dual-line.ts index c95c1a2353..b4b8d630ff 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-dual-line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-dual-line.ts @@ -388,7 +388,9 @@ export class GroupLineMix extends G2ChartView { itemMarker: legend.icon, itemMarkerSize: legend.size, itemLabelFontSize: legend.fontSize, - itemLabelFill: legend.color + itemLabelFill: legend.color, + itemLabelOpacity: 1, + itemLabelFillOpacity: 1 } unionRelations.forEach(([key, value]) => { legendMark.scale.color.domain.push(key) @@ -663,6 +665,7 @@ export class GroupLineMix extends G2ChartView { lineLineWidth: xAxis.axisLine.lineStyle.width, lineLineDash, label: xAxis.axisLabel.show, + labelOpacity: 1, labelFill: xAxis.axisLabel.color, labelFillOpacity: 1, labelFontSize: xAxis.axisLabel.fontSize, diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-group.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-group.ts index 548d88efab..dfe9ef5ece 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-group.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-group.ts @@ -378,7 +378,9 @@ export class GroupLineMix extends G2ChartView { itemMarker: legend.icon, itemMarkerSize: legend.size, itemLabelFontSize: legend.fontSize, - itemLabelFill: legend.color + itemLabelFill: legend.color, + itemLabelOpacity: 1, + itemLabelFillOpacity: 1 } unionRelations.forEach(([key, value]) => { legendMark.scale.color.domain.push(key) @@ -653,6 +655,7 @@ export class GroupLineMix extends G2ChartView { lineLineWidth: xAxis.axisLine.lineStyle.width, lineLineDash, label: xAxis.axisLabel.show, + labelOpacity: 1, labelFill: xAxis.axisLabel.color, labelFillOpacity: 1, labelFontSize: xAxis.axisLabel.fontSize, diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-stack.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-stack.ts index fbf05c0a38..a17dd7da41 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-stack.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix-stack.ts @@ -377,7 +377,9 @@ export class StackLineMix extends G2ChartView { itemMarker: legend.icon, itemMarkerSize: legend.size, itemLabelFontSize: legend.fontSize, - itemLabelFill: legend.color + itemLabelFill: legend.color, + itemLabelOpacity: 1, + itemLabelFillOpacity: 1 } unionRelations.forEach(([key, value]) => { legendMark.scale.color.domain.push(key) @@ -652,6 +654,7 @@ export class StackLineMix extends G2ChartView { lineLineWidth: xAxis.axisLine.lineStyle.width, lineLineDash, label: xAxis.axisLabel.show, + labelOpacity: 1, labelFill: xAxis.axisLabel.color, labelFillOpacity: 1, labelFontSize: xAxis.axisLabel.fontSize, diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix.ts index ad262a8332..ecd7422c54 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/mix/mix.ts @@ -492,6 +492,7 @@ export class ColumnLineMix extends G2ChartView { lineLineWidth: xAxis.axisLine.lineStyle.width, lineLineDash, label: xAxis.axisLabel.show, + labelOpacity: 1, labelFill: xAxis.axisLabel.color, labelFillOpacity: 1, labelFontSize: xAxis.axisLabel.fontSize, diff --git a/core/core-frontend/src/views/chart/components/js/panel/types/impl/g2.ts b/core/core-frontend/src/views/chart/components/js/panel/types/impl/g2.ts index c83229e889..aa365b6bae 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/types/impl/g2.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/types/impl/g2.ts @@ -75,6 +75,8 @@ export abstract class G2ChartView< itemMarkerSize: legendSize, itemLabelFontSize: legendFontSize, itemLabelFill: legendColor, + itemLabelFillOpacity: 1, + itemLabelOpacity: 1, navPageNumFontSize: legendSize, navPageNumFill: legendColor, navButtonSize: legendSize,