|
@@ -181,6 +181,13 @@ export const chartOption = {
|
|
|
return random(0, 100)
|
|
|
}
|
|
|
},
|
|
|
+ getName2(type,dimension='x'){
|
|
|
+ if(this.typeStatus[this.form.schema[dimension].field]){
|
|
|
+ var obj = this.typeStatus[this.form.schema[dimension].field]
|
|
|
+
|
|
|
+ return obj[type]
|
|
|
+ }
|
|
|
+ },
|
|
|
getSeriesData() {
|
|
|
let data = [], count = this.count
|
|
|
let source = this.selected.x
|
|
@@ -205,7 +212,7 @@ export const chartOption = {
|
|
|
const color = this.form.setting.config.color.find(item => item.name === s);
|
|
|
data.push({
|
|
|
value: this.getDataCount(s),
|
|
|
- name: s,
|
|
|
+ name: this.getName2(s),
|
|
|
label: {
|
|
|
show: this.form.setting.dataLabel,
|
|
|
fontSize: this.form.setting.dataSize,
|