echarts [Bug] custom 系列的过度动画 enterAnimation 在执行过程中,切换图例选中状态,会导致动画出错

qojgxg4l  于 2022-12-31  发布在  Echarts
关注(0)|答案(1)|浏览(356)

Version

5.3.2

https://jsfiddle.net/jyx118/92ymjves/23/

Steps to Reproduce

打开上面 jsfiddle 链接后:
1.点击页面左上角按钮 "Run";
2.在误差线的入场动画未执行完之前,连续点击两次图例即可复现

Current Behavior

经历上述过程后,会发现,误差线原本应该是在折线图拐点的上下相邻位置,但是由于动画未执行完成时切换图例导致动画中断,此时再选中刚才取消的图例,会发现 custom 系列的入场动画的 y 属性停留在之前入场动画终止的位置。

Expected Behavior

预期结果是,无论如何切换图例,入场动画都能完全执行完成,保证动画执行完成后 custom 系列的自定义图形位置正确。

Environment

- OS: macOS Monterey
- Browser: Chrome 92.0.4515.131
- Framework: Vue@2

Any additional comments?

No response

7rtdyuoh

7rtdyuoh1#

@jiao1187875445 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] Excessive animation of custom series enterAnimation During execution, switching the legend selection state will cause an animation error

BODY

Version

5.3.2

https://jsfiddle.net/jyx118/92ymjves/23/

Steps to Reproduce

After opening the above jsfiddle link:

  1. Click the button "Run" in the upper left corner of the page;
  2. Before the entry animation of the error bar is executed, click the legend twice in a row to reproduce

Current Behavior

After going through the above process, it will be found that the error bar should be at the upper and lower adjacent positions of the inflection point of the line chart, but the animation is interrupted due to the switching of the legend when the animation is not completed. The entrance animation's y property stays where the previous entrance animation ended.

Expected Behavior

The expected result is that no matter how the legend is switched, the entry animation can be completely executed, ensuring that the custom graphics of the custom series are in the correct position after the animation is executed.

Environment

- OS: macOS Monterey
- Browser: Chrome 92.0.4515.131
- Framework: Vue@2

Any additional comments?

No response

相关问题