feat: legend 以及 valueMapping的配置

This commit is contained in:
zhangyu
2021-12-01 16:34:50 +08:00
parent c6a6dab65a
commit cc6bfbbdc2
9 changed files with 516 additions and 157 deletions

View File

@@ -195,8 +195,20 @@ export default {
datasource: '1',
height: 4,
unit: 2,
param: { url: '', threshold: '' },
elements: [{ expression: '', legend: '', type: 'expert', id: '' }],
param: {
url: '',
threshold: '',
stack: 0,
nullType: 'null',
legend: { placement: 'bottom', values: [], show: true },
thresholdShow: true,
thresholds: [{ value: '', color: '#eeeeeeff' }],
valueMapping: {
show: true,
mapping: []
}
},
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A' }],
panel: '',
sync: 0,
remark: '',