forked from github/dataease
fix(图表): 日期类型的子维度图例显示不全
This commit is contained in:
parent
15330308f4
commit
1b4b9f0608
@ -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']
|
||||
}
|
||||
|
@ -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']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user