|
|
@@ -217,7 +217,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- chartData(init,data){
|
|
|
+ chartData(init,data,retryCount = 0){
|
|
|
+ if (retryCount > 10) return
|
|
|
let index = 0
|
|
|
let indexNew = 0
|
|
|
if (data){
|
|
|
@@ -240,10 +241,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- console.log(this.chartMapData,'chartMapData')
|
|
|
if (init){
|
|
|
if (!this.$refs.chartRef) {
|
|
|
- this.$nextTick(() => this.chartData(init, data))
|
|
|
+ this.$nextTick(() => this.chartData(init, data, retryCount + 1))
|
|
|
return
|
|
|
}
|
|
|
this.chartMap = new Column(this.$refs.chartRef,{
|