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.

Asynchronously loaded data breaks animation in graph leading to dots not showing up

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Hover over the graph and no animation is triggered

What is expected?

  • Graph to be animated
  • Active and non-active dots to show up on Line
  • Tooltip to animate on hover

What is actually happening?

  • Graph does not animate
  • Dots do not show up on <Line />
  • Active dots are not triggered on <Line />
  • Tooltip does not animate
Environment Info
Recharts v2.0.0-beta.5
React react@16.12.0
System macOS Catalina 10.15.2
Browser Version 80.0.3987.149

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
xile611commented, Apr 16, 2020

@no-itsbackpack

the following behavior is right

  • Graph does not animate
  • Dots do not show up on
  • Tooltip does not animate

but he behavior of active dot is not right.

1reaction
Gekctekcommented, May 6, 2020

I also experience this bug. No dots show up if the chart changes in mid animation. Inital load is fine. Turning off animation, the dots always show up just fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Break a loop inside an animation block - ios - Stack Overflow
You need to understand, that the completion block that you pass to the animate function is called after the animation has finished, ...
Read more >
How To Handle Async Data Loading, Lazy Loading, and Code ...
This tutorial will explain how to avoid this with a special Hook called useEffect , which will run functions only when specific data...
Read more >
10 Problems (and Solutions) for Blender Newbies - dummies
Blender saves some simulation data to your hard drive. Unfortunately, if that simulation data isn't where Blender expects it to be, your simulation...
Read more >
ESP32/ESP8266 Plot Sensor Readings in Real Time Charts
Learn how to plot sensor readings on ESP32 or ESP8266 web server using Arduino IDE. The ESP will have three real time charts...
Read more >
Top 18 Most Common AngularJS Developer Mistakes - Toptal
CSS and HTML are not the biggest concern anymore, in fact, there is no longer just a single concern. The front-end developer needs...
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