echarts [Bug] Event to know if the chart is completely rendered

64jmpszr  于 5个月前  发布在  Echarts
关注(0)|答案(1)|浏览(43)

Version

5.4.2

sample

Steps to Reproduce

I am building a drag & drop functionality as show in sample where bottom graphic object is moveable & based on that green graphic object will move.

for this functionality , I have to load the all the graphic objects after loading the chart , as the code is dependent on chart height & width properties(pixels domain) , and proper values for these properties are available after loading chart.

I tried events like finished & rendered , but they are getting triggered multiple time .

is there any solution or hack to load the graphic objects after loading the chart completely . it my case we are loading like 10000 to 20000 sample in the chart.

Current Behavior

I tried events like finished & rendered , but they are getting triggered multiple time .

Expected Behavior

we need event which gets trigged only once after loading the chart completely.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

owfi6suc

owfi6suc1#

Maybe window load event (unrelated to echarts) works for your use case.

相关问题