From cd3847d5fe21eac72356e1c83ecf51b54c133563 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 2 Jul 2024 18:19:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9F=B1=E7=BA=BF=E7=BB=84=E5=90=88=E5=9B=BE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=9B=BE=E4=BE=8B=E6=B2=A1=E6=9C=89=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #10009 #10277 --- .../chart/components/js/panel/charts/others/chart-mix.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts index cf301fca78..c1d3ac63aa 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts @@ -423,9 +423,9 @@ export class ColumnLineMix extends G2PlotChartView { formatter: (text: string, item: any, index: number) => { let name = undefined if (item.viewId === 'left-axes-view' && text === 'value') { - name = left[0]?.name + name = left[0]?.categories[0] } else if (item.viewId === 'right-axes-view' && text === 'valueExt') { - name = right[0]?.name + name = right[0]?.categories[0] } item.id = item.id + '__' + index //防止重复的图例出现问题,但是左右轴如果有相同的怎么办 if (name === undefined) {