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

主要是自己記筆記用,大佬些莫怪 使用 echart 出現 :Uncaught Error: setOption should not be called during main process. 參考:https: blog.csdn.net guoliwei article details ...

2019-10-28 13:08 0 1150 推薦指數:

查看詳情

ECharts報錯: Uncaught Error: `setOption` should not be called during main process

Echarts數據圖形渲染,圖形數據量比較大,渲染后,點擊查詢圖形再次渲染,可能數據量大,重新渲染時,出現Uncaught Error: `setOption` should not be called during main process 這個錯誤,代碼肯定是沒有問題的,因為第一遍默認加載 ...

Sat Nov 06 01:41:00 CST 2021 0 2017
Error: `resize` should not be called during main process.

使用echarts根據屏幕變化重新繪制圖,一直報這個錯,找個了半天也沒有發現是哪里的問題 因為這個是我封裝的組件要監聽option的變化來重新繪制圖,所以在watch中init圖表 后來我在w ...

Sun Nov 07 18:35:00 CST 2021 0 2879
echarts 報錯 should not be called during main process

原因是,在循環渲染多個圖表的時候,渲染的圖表和數據有先后順序,有時候出現對應不上的情況,可能是數據已經好了,圖表要渲染慢一些 導致這個問題 解決就是,放在定時器中,比如,我這個是在渲染之后,進行r ...

Fri Mar 26 00:50:00 CST 2021 0 488
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM