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

qianming 2 years ago
parent 06b6b890c1
commit 0a4eb5fa14

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

Loading…
Cancel
Save