From 6ffcff8742386c3470c4ec6b6d98766f0c1480bd Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 9 Oct 2024 18:20:36 +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=E6=9C=AA=E6=8B=96=E5=85=A5=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E4=B8=BA=E7=A9=BA=E5=AD=97=E6=AE=B5=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E6=95=B0=E6=8D=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/panel/charts/others/chart-mix.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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 3dd572875a..d617102e87 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 @@ -58,12 +58,14 @@ export class ColumnLineMix extends G2PlotChartView { //用这个字段存放右轴分类 name: `${t('chart.drag_block_type_axis_right')} / ${t('chart.dimension')}`, limit: 1, - type: 'd' + type: 'd', + allowEmpty: true }, yAxisExt: { name: `${t('chart.drag_block_value_axis_right')} / ${t('chart.line_quota')}`, limit: 1, - type: 'q' + type: 'q', + allowEmpty: true } } @@ -633,7 +635,8 @@ export class GroupColumnLineMix extends ColumnLineMix { xAxisExt: { name: `${t('chart.chart_group')} / ${t('chart.dimension')}`, type: 'd', - limit: 1 + limit: 1, + allowEmpty: true } } @@ -744,7 +747,8 @@ export class StackColumnLineMix extends ColumnLineMix { extStack: { name: `${t('chart.stack_item')} / ${t('chart.dimension')}`, type: 'd', - limit: 1 + limit: 1, + allowEmpty: true } } @@ -856,7 +860,8 @@ export class DualLineMix extends ColumnLineMix { xAxisExt: { name: `${t('chart.drag_block_type_axis_left')} / ${t('chart.dimension')}`, type: 'd', - limit: 1 + limit: 1, + allowEmpty: true } }