There is a chart instance already initialized on the dom
See original GitHub issueOne-line summary [问题简述]
在VUE里用了多入口,但是按需引入echarts的,为什么会报There is a chart instance already initialized on the dom.
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
option = {
}
Other comments [其他信息]
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
There is a chart instance already initialized on the dom. #299
I just created one chart and get this warning on console: There is a chart instance already initialized on the dom. (echarts.js:2168) I...
Read more >There is a chart instance already initialized on the dom!
On the current page, when you execute charts drawing for many times, the console will give a warning “there is a chart instance...
Read more >There is a chart instance already initialized on the dom!警告
用echarts时,如果存在DOM,就会报存在警告,处理方法删除DOM: echarts.dispose(document.getElementById(id)) 复制代码.
Read more >Echarts:There is a chart instance already initialized ... - 零五网
使用Echarts 插件的时候,多次加载会出现 There is a chart instance already initialized on the dom! 错误,提示echarts 已经初始化过了。
Read more >echart cannot be visualized on DOM even though there is an ...
Hello i have a wird issue that the echarts is not loading even there is an instance on the DOM. ... chart displayed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
參考API文檔 http://echarts.baidu.com/api.html#echarts.dispose
1.取得DOM
2.判斷是否已有實例
3.初始化&配置設定
dom 已经实例化过了,返回的是之前的实例,可以先 dispose 再重新实例化