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
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 |
- Commenting out
onMouseMove
on the LineGraph seems to fix the animation issue but having async data still breaks the graph - There are similar issues that have been closed in the past, I was wondering if the main issue was actually fixed or if those issues were closed due to being stage?
- https://github.com/recharts/recharts/issues/789
- https://github.com/recharts/recharts/issues/375
- https://github.com/recharts/recharts/issues/1259 there are a couple others but these should do
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >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
@no-itsbackpack
the following behavior is right
but he behavior of active dot is not right.
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