echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Problem with toolbox while updating data continuously

Open rld2014 opened this issue 3 years ago • 1 comments

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

I created the chart like

myChart.setOption({
    //...
    toolbox:{
   //...
    }
    series: {[
     data:[]
 ]}
})

and do data updates like

async function doDataUpdate(){
 //blahblah...
    let res = await getSomeDataAsync()
    myChart.setOption({
        series:[{
            data:res
        }]
    })
}
    timer = setInterval(doDataUpdate, 50)

Current Behavior

The ENTIRE toolbox (including those integrated into echarts and my own) doesn't seem to be responding... I need to click those icons MANY MANY TIMES and maybe the events will be triggered. I guess this is due to the toolbox is refreshed every time I call setOption(). Rolling back to 3.6.2 solves these, but seemed to bring a large performance impact... Slowing down the timer COULD make the buttons more likely to respond.

Expected Behavior

the toolbox buttons should be always available...

Environment

- OS: Windows 10
- Browser: Electron 20
- Framework: Vue@3

Any additional comments?

No response

rld2014 avatar Oct 14 '22 08:10 rld2014

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 Oct 13 '24 21:10 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 Oct 21 '24 21:10 github-actions[bot]