NEZ-2178 feat:新增 rank 排行榜图表类型

This commit is contained in:
zyh
2022-09-09 09:51:58 +08:00
parent b119b9e762
commit 919b122b74
11 changed files with 373 additions and 7 deletions

View File

@@ -1020,6 +1020,10 @@ export default {
id: 'bubble',
name: this.$t('dashboard.panel.chartForm.typeVal.bubble.label')
},
{
id: 'rank',
name: this.$t('dashboard.panel.chartForm.typeVal.rank.label')
},
{
id: 'log',
name: this.$t('dashboard.panel.chartForm.typeVal.log.label')
@@ -1107,7 +1111,8 @@ export default {
case 'gauge':
case 'sankey':
case 'bubble':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'sankey' || this.oldType === 'hexagon' || this.oldType === 'bubble') {
case 'rank':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'sankey' || this.oldType === 'hexagon' || this.oldType === 'bubble' || this.oldType === 'rank') {
break
}
this.chartConfig.param = {