Merge pull request #1748 from dataease/pr@dev@feat_S2_pivot

feat: S2 pivot
This commit is contained in:
Junjun 2022-02-10 10:23:40 +08:00 committed by GitHub
commit 8d973d9b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1946,7 +1946,7 @@ export default {
addYaxis(e) {
this.dragCheckType(this.view.yaxis, 'q')
this.dragMoveDuplicate(this.view.yaxis, e)
if ((this.view.type === 'map' || this.view.type === 'waterfall' || this.view.type === 'word-cloud') && this.view.yaxis.length > 1) {
if ((this.view.type === 'map' || this.view.type === 'waterfall' || this.view.type === 'word-cloud' || this.view.type === 'table-pivot') && this.view.yaxis.length > 1) {
this.view.yaxis = [this.view.yaxis[0]]
}
this.calcData(true)