Skip to content

magicType.type:['stack','tiled'],初始化时切换stack与tiled的按钮状态未同步 #20031

@xumiaojun

Description

@xumiaojun

Version

5.5.0

Link to Minimal Reproduction

options:{ ...省略 toolbox: { feature: { magicType: { type: ['stack', 'tiled'], }, dataView: { show: false }, }, }, series: [ { stack:‘one’, ...省略 }, { stack:‘one’, ...省略 } ] }

Steps to Reproduce

options:{
...省略
toolbox: {
feature: {
magicType: {
type: ['stack', 'tiled'],
},
dataView: { show: false },
},
},
series: [
{
stack:‘one’,
...省略
},
{
stack:‘one’,
...省略
}
]
}

Current Behavior

初始化ercharts时,
image
数据默认stack都是one,一致的,但是此处按钮提示却是切换堆叠,应该显示切换平铺才对。这样会导致点击两次之后才能达到想要的效果。

Expected Behavior

数据默认stack都是one,一致时,切换按钮应该显示切换平铺。

Environment

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions