feat: 限制矩形图指标数量

This commit is contained in:
junjie 2021-08-09 16:56:49 +08:00
parent 2f77d566c8
commit 54e0490279

View File

@ -859,7 +859,11 @@ export default {
}
}
})
if (view.type.startsWith('pie') || view.type.startsWith('funnel') || view.type.startsWith('text') || view.type.startsWith('gauge')) {
if (view.type.startsWith('pie') ||
view.type.startsWith('funnel') ||
view.type.startsWith('text') ||
view.type.startsWith('gauge') ||
view.type === 'treemap') {
if (view.yaxis.length > 1) {
view.yaxis.splice(1, view.yaxis.length)
}