Merge pull request #562 from dataease/pr@dev@feat_限制矩形图指标数量

feat: 限制矩形图指标数量
This commit is contained in:
XiaJunjie2020 2021-08-09 16:57:48 +08:00 committed by GitHub
commit b79339ce9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}