Sitelet https://github.com/recharts/recharts/pull/2911
Skip to content

Set the pre-animation flag to complete animation before the chart data is updated - #2911

Merged
arcthur merged 1 commit into
recharts:masterfrom
zhengyunyu:dev_zyy/feature/animation
Jul 26, 2022
Merged

arcthur merged 1 commit into
recharts:masterfrom
zhengyunyu:dev_zyy/feature/animation

Conversation

@zhengyunyu

@zhengyunyu zhengyunyu commented Jul 20, 2022 •

Copy link
Copy Markdown
Contributor

When the data of the chart is the same twice, static rendering will be performed, without animation rendering.
This may cause the last animation to be destroyed before it has finished executing, resulting in isAnimationFinished always being true, in which case the Label will not render.

@arcthur
arcthur merged commit 9fb344b into recharts:master Jul 26, 2022
@zhengyunyu zhengyunyu changed the title 在图表数据更新前将前置的动画标志设置为已完成动画 Set the pre-animation flag to complete animation before the chart data is updated Dec 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants