Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not append Data while Zooming #557

Open
panda919 opened this issue Oct 27, 2023 · 1 comment
Open

I can not append Data while Zooming #557

panda919 opened this issue Oct 27, 2023 · 1 comment

Comments

@panda919
Copy link

I gonna append candlestick data with socket channel on echart.
But while zooming is running, if socket data is received, then append data occur error.
image
How to fix it?
Also, DataZoom call back is triggered only dataZoom is finixhed.
How to check datazooom is running?

@jploskey
Copy link

jploskey commented Nov 5, 2024

Also running into this issue. I'm using echarts version 5.5.1. The only workaround I have as of now is to detect when the datazoom is zoomed in by following datazoom events, checking the bounds and if start is 0 and end is 100, I stop appending data, otherwise I enable it. This isn't a great workaround, because for my use case, users will probably want to zoom in on data as it comes in.

Unfortunately, this error pops up every once in a while too, and only when datazoom is active and new data is appended using appendData(), and this causes the chart to freeze entirely:

Screenshot 2024-11-05 at 2 40 58 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants