Merge pull request #12602 from dataease/pr@dev-v2@chart-mix-fix

fix(图表): 修复组合图未拖入允许为空字段时,无法显示数据的问题
This commit is contained in:
jianneng-fit2cloud 2024-10-09 18:21:12 +08:00 committed by GitHub
commit 40f8c13920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,12 +58,14 @@ export class ColumnLineMix extends G2PlotChartView<DualAxesOptions, DualAxes> {
//用这个字段存放右轴分类 //用这个字段存放右轴分类
name: `${t('chart.drag_block_type_axis_right')} / ${t('chart.dimension')}`, name: `${t('chart.drag_block_type_axis_right')} / ${t('chart.dimension')}`,
limit: 1, limit: 1,
type: 'd' type: 'd',
allowEmpty: true
}, },
yAxisExt: { yAxisExt: {
name: `${t('chart.drag_block_value_axis_right')} / ${t('chart.line_quota')}`, name: `${t('chart.drag_block_value_axis_right')} / ${t('chart.line_quota')}`,
limit: 1, limit: 1,
type: 'q' type: 'q',
allowEmpty: true
} }
} }
@ -633,7 +635,8 @@ export class GroupColumnLineMix extends ColumnLineMix {
xAxisExt: { xAxisExt: {
name: `${t('chart.chart_group')} / ${t('chart.dimension')}`, name: `${t('chart.chart_group')} / ${t('chart.dimension')}`,
type: 'd', type: 'd',
limit: 1 limit: 1,
allowEmpty: true
} }
} }
@ -744,7 +747,8 @@ export class StackColumnLineMix extends ColumnLineMix {
extStack: { extStack: {
name: `${t('chart.stack_item')} / ${t('chart.dimension')}`, name: `${t('chart.stack_item')} / ${t('chart.dimension')}`,
type: 'd', type: 'd',
limit: 1 limit: 1,
allowEmpty: true
} }
} }
@ -856,7 +860,8 @@ export class DualLineMix extends ColumnLineMix {
xAxisExt: { xAxisExt: {
name: `${t('chart.drag_block_type_axis_left')} / ${t('chart.dimension')}`, name: `${t('chart.drag_block_type_axis_left')} / ${t('chart.dimension')}`,
type: 'd', type: 'd',
limit: 1 limit: 1,
allowEmpty: true
} }
} }