question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: `setOption` should not be called during main process.

See original GitHub issue

Version

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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
sususususususscommented, Jul 23, 2021

我最近也出现了这个错误,v5.0.2 setTimeout,reset方法等都试过了,没用,在radar图中出现的错误,其他类型的图都都没出现,有什么解决方法么

1reaction
Quang-Dongcommented, Sep 29, 2021

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', }, }, ], }, ], })

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found