From 0450eb5284bea60fd9f561d6d22bf92c357cc419 Mon Sep 17 00:00:00 2001 From: ulleo Date: Sat, 14 Sep 2024 10:57:13 +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=E7=BA=BF=E7=BB=84=E5=90=88=E5=9B=BE=E5=B7=A6=E7=BA=B5?= =?UTF-8?q?=E8=BD=B4=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E8=89=B2=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/others/chart-mix.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 371c8fe4ce..35cf1d3983 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 @@ -870,9 +870,9 @@ export class DualLineMix extends ColumnLineMix { p[n.id] = n return p }, {}) - const { yAxis, extStack } = chart + const { yAxis, xAxisExt } = chart const { data } = options as unknown as Options - if (extStack?.length) { + if (xAxisExt?.length) { const seriesSet = new Set() data[0]?.forEach(d => d.category !== null && seriesSet.add(d.category)) const tmp = [...seriesSet] @@ -917,8 +917,8 @@ export class DualLineMix extends ColumnLineMix { const result: ChartBasicStyle['seriesColor'] = [] const seriesSet = new Set() const colors = chart.customAttr.basicStyle.colors - const { yAxis, extStack } = chart - if (extStack?.length) { + const { yAxis, xAxisExt } = chart + if (xAxisExt?.length) { data?.forEach(d => { if (d.value === null || d.category === null || seriesSet.has(d.category)) { return