fix(视图): 修复图表类型切换逻辑

This commit is contained in:
junjie 2021-11-23 16:54:01 +08:00
parent 7f9430787f
commit 7329b819a4

View File

@ -993,6 +993,7 @@ export default {
view.type.startsWith('gauge') ||
view.type === 'treemap' ||
view.type === 'liquid' ||
view.type === 'word-cloud' ||
view.type === 'waterfall') {
if (view.yaxis.length > 1) {
view.yaxis.splice(1, view.yaxis.length)
@ -1001,6 +1002,9 @@ export default {
if (view.type === 'line-stack' && trigger === 'chart') {
view.customAttr.size.lineArea = true
}
if (view.type === 'line' && trigger === 'chart') {
view.customAttr.size.lineArea = false
}
if (view.type === 'treemap' && trigger === 'chart') {
view.customAttr.label.show = true
}