Line graph onAnimationEnd doesn't trigger and dots do not render
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What is the current behavior?
Not all the time, but sometimes the onAnimationEnd
prop on Line
graph doesn’t trigger and the dots do not render on the graph. I think it has something to do with the handleAnimationEnd
function in Line.js that should be called by the react-smooth Animate
component but its not. handleAnimationEnd
sets isAnimationFinish
to true in the Line graph state and triggers the dot render.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: http://jsfiddle.net/ndLhnegs/).
It just happens sometimes when you refresh
What is the expected behavior?
Everything should render every single time and onAnimationEnd should fire
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
v1.6.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:7
Top Results From Across the Web
Disable Animation with Charts.js - javascript - Stack Overflow
Give the Chart a fixed height. If the parent element is responsive it may cause the chart to re-render and make it seem...
Read more >Reveal or hide a view using animation - Android Developers
Using onAnimationEnd() in an Animator.AnimatorListener , set the visibility of the view that was fading out to GONE .
Read more >A Comparison of Animation Technologies - CSS-Tricks
There's no possible way to go over every single animation library around ... ability to animate large swaths of sequences in a line...
Read more >Using Animation Events - Unity - Manual
To add an Animation event to any point in the Animation, double-click the Event line at the point where you want the Event...
Read more >Why You Should Use SVG Images: How to Animate Your ...
Why Are We Using SVG? The web development sector is growing at a rapid pace, and SVG (scalable vector graphics) images are becoming...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This still happens in v.1.8.5.
The dots render when animation is disabled by setting
isAnimationActive={false}
Still experiencing the same issue with
AreaChart
in v1.8.15. Only fix I have found is settingisAnimationActive={false}
.