question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line graph onAnimationEnd doesn't trigger and dots do not render

See original GitHub issue

Do 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:open
  • Created 4 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

5reactions
barbalexcommented, Mar 25, 2020

This still happens in v.1.8.5.

The dots render when animation is disabled by setting isAnimationActive={false}

1reaction
nicvickerywcommented, Oct 15, 2020

Still experiencing the same issue with AreaChart in v1.8.15. Only fix I have found is setting isAnimationActive={false}.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found