bugfix--雷达图动态数据不显示

qianming 2 years ago
parent 06b6b890c1
commit 0a4eb5fa14

@ -61,7 +61,6 @@ export default {
methods: {
editorOptions() {
this.setOptionsTitle();
this.setOptionIndicator();
this.setOptionsRadar();
this.setOptionsLegend();
this.setOptionsTooltip();
@ -90,12 +89,6 @@ export default {
};
this.options.title = title;
},
//
setOptionIndicator() {
const optionsSetup = this.optionsSetup;
const indicator = optionsSetup.dynamicAddRadar;
this.options.radar.indicator = indicator;
},
//
setOptionsRadar() {
const optionsSetup = this.optionsSetup;
@ -203,8 +196,9 @@ export default {
arrColor.push(customColor[i].color);
}
this.options.color = arrColor;
//
const indicator = optionsSetup.dynamicAddRadar;
this.options.radar.indicator = indicator;
// key
const radarKeys = [];
for (const i in indicator) {
@ -284,8 +278,9 @@ export default {
arrColor.push(customColor[i].color);
}
this.options.color = arrColor;
//
const indicator = optionsSetup.dynamicAddRadar;
this.options.radar.indicator = indicator;
// key
const radarKeys = [];
for (const i in indicator) {
@ -338,6 +333,7 @@ export default {
};
this.options.legend["data"] = legendName;
this.setOptionsLegendName(legendName);
console.log(this.options.series)
},
},
};

Loading…
Cancel
Save