echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Chart plots blank (with data)

Open HelloWorld1949 opened this issue 3 years ago • 4 comments

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. image image image

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

HelloWorld1949 avatar May 17 '22 03:05 HelloWorld1949

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.

echarts-bot[bot] avatar May 17 '22 03:05 echarts-bot[bot]

The specific code is as follows: image image image

HelloWorld1949 avatar May 17 '22 03:05 HelloWorld1949

Here is the case where the function call is triggered by the button after commenting out the timer, and the chart is drawn successfully at this time。Anyway, this question is weird. The behavior of trying to delay drawing the chart through the timer caused the chart drawing to fail, and the button click call also failed to draw successfully. However, if the delay drawing of the timer is removed, I can successfully draw the chart through the button click. image image image

HelloWorld1949 avatar May 17 '22 03:05 HelloWorld1949

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar May 16 '24 21:05 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar May 23 '24 21:05 github-actions[bot]