-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scatter Chart update animation causes browser to hang #1812
Comments
I have seen the browser become unresponsive as well when a ScatterChart is displayed. I was able to break into the loop to get a call stack. It happens sporadically. It either shows up as soon as the chart is displayed or it doesn't show up at all until I leave and go back to that page later. |
Seeing this as well when I update a Scatter. Would appreciate a workaround / fix. |
Specifying isAnimationActive={false} on the Scatter component worked for me. |
Sorry for not handling your issue in time, please try the latest version. If the problem persists, please open a new issue according to the issue guide. |
Do you want to request a feature or report a bug?
No
What is the current behavior?
For scatter chart, with isAnimationActive enabled by default, after updating dataKeys for XAxis, YAxis, and/or ZAxis multiple times, the browser hangs.
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/).
Rendered scatter chart with the following code:
What is the expected behavior?
Browser should not hang when xDataKey, yDataKey, and zDataKey are updated in the scatter chart that has animation enabled.
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
recahrt: 1.5.0
Chrome: 75.0.3770.100
OS: Windows 10
Storybook: 4.1.7 with knob addon (4.1.1)
typescript: 3.2.4
The text was updated successfully, but these errors were encountered: