Open dirslashls opened 2 years ago
Note that, with the workaround I mentioned above, while it works, the UX is not great. See the attached video. Ideal behavior I think would be the animation should happen correctly as the resize happens
https://user-images.githubusercontent.com/2200491/159216719-3279a062-91a6-4b45-a8e6-d6fdfcc84657.mov
.
@pissang , any thoughts on this?
@dirslashls It's confirmed to be a bug
Seems like #14848 is related (animation & resize).
Version
5.3.1
Link to Minimal Reproduction
No response
Steps to Reproduce
Current Behavior
The chart gets stuck with the intermediate animated positions.
Expected Behavior
I tried this for bar racing charts also and there it doesn't seem to happen. However, that could be because there is a separate thread that is also continuously updating the chart with new data.
Environment
Any additional comments?
It seems like the chart.resize shouldn't be executed (or may be queued) till the animation is complete. I experimented by explicitly tracking whether the animation is going on or not (by listening to the 'finished' event) and not calling the resize and it seems to work. It would be good to have this available from this wonderful framework itself.