feat: chart-system 添加legend

This commit is contained in:
zhangyu
2021-12-29 14:29:37 +08:00
parent c8dc99d6c4
commit ff96da9ba5
5 changed files with 99 additions and 70 deletions

View File

@@ -354,7 +354,8 @@ export default {
group: '',
select: '',
limit: 100,
sort: 'desc'
sort: 'desc',
legend: ''
}
],
valueMapping: []
@@ -439,6 +440,9 @@ export default {
if (this.editChart.param.enable.legend && !this.editChart.param.legend) {
this.editChart.param.legend = { placement: 'bottom', values: [], show: true }
}
if (this.editChart.param.datasource && !this.editChart.param.datasource[0].legend) {
this.editChart.param.datasource[0].legend = ''
}
}
}
},