From 8aed93f84769dbd1d95e8f7adcbab9287641475f Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 9 Sep 2025 15:27:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=9B=BE=E5=8F=B3=E8=BD=B4=E6=9C=AA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AD=90=E7=B1=BB=E5=88=AB=E6=97=B6=E5=9B=BE=E4=BE=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= 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 | 2 +- .../views/chart/components/js/panel/charts/g2/mix/mix-group.ts | 2 +- .../views/chart/components/js/panel/charts/g2/mix/mix-stack.ts | 2 +- 3 files changed, 3 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 6ec32aef36..c1a78ba656 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 @@ -288,7 +288,7 @@ export class GroupLineMix extends G2ChartView { }) const rightCat = [] if (!extBubble?.length) { - rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) + yAxisExt?.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) } else { const { rightData } = context rightData.forEach( 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 dc88ee440b..13f3572a37 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 @@ -258,7 +258,7 @@ export class GroupLineMix extends G2ChartView { merge(intervalMark, leftColorScale) const rightCat = [] if (!extBubble?.length) { - rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) + yAxisExt?.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) } else { const { rightData } = context rightData.forEach( 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 f2a7dfc16c..2664907cef 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 @@ -257,7 +257,7 @@ export class StackLineMix extends G2ChartView { merge(intervalMark, leftColorScale) const rightCat = [] if (!extBubble?.length) { - rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) + yAxisExt.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name) } else { const { rightData } = context rightData.forEach(