Error: `setOption` should not be called during main process.
See original GitHub issueVersion
5.1.2
Steps to reproduce
setOption(option with some error
),
Error: setOption
should not be called during main process.
when I fixed option , try setOption again, it still report above error only then i dispose this chart instance and redraw it become normal
but I have same element(create by zrender ) that not include in option,dispose and redraw will miss these element so how can I fixed above error and keep these element
What is expected?
I fixed above error and keep these element
What is actually happening?
miss these element
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
echarts.js:3066 Uncaught Error: `setOption` should not be ...
... Error: `setOption` should not be called during main process ... 使用 echarts. dispose销毁实例,之后再调用init,setOption 就没什么问题了 ...
Read more >Uncaught Error: `setOption` should not be called during main ...
这个错误,代码肯定是没有问题的,因为第一遍默认加载的时候是正常显示,只是重新渲染的时候出现了问题。 这个报错,是为了限制setOption 调用时机,意思 ...
Read more >javascript - How to fix the 'setOption' does not exist on type ...
How to fix the 'setOption' does not exist on type 'MutableRefObject in react · On first render, chartEl. · @GalAbra do I need...
Read more >ECharts报错: Uncaught Error: `setOption` should not be called ...
ECharts报错: Uncaught Error: `setOption` should not be called during main process ... 这个错误,代码肯定是没有问题的,因为第一遍默认加载的时候是 ...
Read more >echarts error setoption should not be called during main process
echarts error setoption should not be called during main process技术、学习、经验文章掘金开发者社区搜索结果。掘金是一个帮助开发者成长的社区,echarts error ...
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
我最近也出现了这个错误,v5.0.2 setTimeout,reset方法等都试过了,没用,在radar图中出现的错误,其他类型的图都都没出现,有什么解决方法么
I got this error, and here’s the reason I found out:
The point is that you have to access the correct path of the series’ child objects
Option
option: { series: [ data: [ { value: 0, detail: { color: 'white', }, }, ], ] }
setOption
myChart.setOption({ series: [ { data: [ { value: your_data, detail: { color: 'white', }, }, ], }, ], })