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,