-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
[Bug] Transition missing when using filterMode "none" in dataZoom #20500
Comments
Frankly I do not understand what you mean by "transition". API has only universalTransition which does not apply since there is no second line here. |
I mean the animation of the line that happens when changing the zoom level programmatically. When the Seems your demo link is wrong (it links to this issue). |
ok, so this is about line animation.
On the screen recording it's instant, but in your code example it is not. OTOH the third X-axis labels animation could be considered "instant" and I don't know if that's fixable. |
Here is another recording, the three changes of zoom level are animated. I tested this in Firefox and Edge. The |
BTW the axis labels seem to be animated correctly when this happens, only the line is being changed instantly. |
I see and understand the effect in recorded image, but cannot replicate it in code. EDIT: aah, I can confirm it in Firefox/Edge, was testing with Chrome only, sorry. So the bug is browser specific. |
I admit to not paying attention to the width you mentioned. I was stretching the chart but not enough. |
Version
5.5.1
Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/xhzv2x
Steps to Reproduce
In the reproduction example link, the chart is alternating between 3 zoom states every 2 seconds.
Current Behavior
Depending on the chart size inside the browser window, the transition of the chart between the
setOption()
updates is sometimes missing.On small browser window sizes, or when using a different
filterMode
(notnone
), the transition is working.When the viewport is enlarged, the transition stops working for the smallest zoom area.
When the preview panel is resized so the canvas width is 884 px, the transition does not work when switching to the highest zoom level. If the preview panel is resized so the canvas has 892 px, the transition stops working.
Expected Behavior
The transition should work on any zoom levels, independent of the rendered size or the used
filterMode
.Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: