-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Description
Version
e.g.5.3.2
Link to Minimal Reproduction
No response
Steps to Reproduce
step1: Use the timer to execute the drawing function after the document is loaded. The result is that there is data and no pictures.
step2: Bind the drawing function to the button event, there is still data but no picture when clicked to execute, and there is no error in the background view.
step3: The logic of the drawing function remains unchanged, remove the timer delay in step1, execute it by means of step2, and find that the drawing is successful.



Current Behavior
The main problem: once I delay drawing the chart through the timer, the artboard is blank; if I remove the timer and execute it by button click instead, the chart draws successfully. The above problem does not have any error output in the browser console panel.
Expected Behavior
Hope that solves the problem; I've tried to do so by clearing the chart object, but it didn't work.
Environment
- OS:win10
- Browser:chrome 96.0.4664.45
- Framework:JS+HTML
There is no background service framework, I am writing a browser plugin.Any additional comments?
No response