Merge pull request #12897 from dataease/pr@dev-v2@fix_date_sub_dim

fix(图表): 日期类型的子维度图例显示不全
This commit is contained in:
wisonic-s 2024-10-24 17:43:29 +08:00 committed by GitHub
commit 94ec8872e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 3 deletions

View File

@ -412,7 +412,12 @@ export class StackBar extends Bar {
this.baseOptions = {
...this.baseOptions,
isStack: true,
isGroup: false
isGroup: false,
meta: {
category: {
type: 'cat'
}
}
}
this.axis = [...this.axis, 'extStack']
}
@ -668,7 +673,12 @@ export class PercentageStackBar extends GroupStackBar {
isStack: true,
isPercent: true,
isGroup: false,
groupField: undefined
groupField: undefined,
meta: {
category: {
type: 'cat'
}
}
}
this.axis = [...BAR_AXIS_TYPE, 'extStack']
}

View File

@ -403,7 +403,12 @@ export class HorizontalStackBar extends HorizontalBar {
this.baseOptions = {
...this.baseOptions,
isGroup: false,
isStack: true
isStack: true,
meta: {
category: {
type: 'cat'
}
}
}
this.axis = [...this.axis, 'extStack']
}