apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.77k stars 19.58k forks source link

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

Open xumiaojun opened 1 month ago

xumiaojun commented 1 month ago

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

echarts-bot[bot] commented 1 month ago

@xumiaojun It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

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