()
| 367 | } |
| 368 | }, |
| 369 | mounted() { |
| 370 | this.myChart = echarts.init(document.getElementById(this.id), null, { renderer: 'canvas' }) // 外面获取 因为改变尺寸图表要resize |
| 371 | vm.initChart(this.myChart, this.chartOption, this.option, this.id, item) |
| 372 | }, |
| 373 | beforeDestroy() { |
| 374 | this.myChart.clear() |
| 375 | }, |
nothing calls this directly
no test coverage detected