-
Notifications
You must be signed in to change notification settings - Fork 117
Bug: graphType doesn't update correctly #329
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
Comments
I've met the same issue. Destroying function plot instance and rebuilding now as a temporary solution. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks for the bug report, the initial render has a single ![]() The 2nd render by clicking on the first button still has a single These lines do the data join Lines 547 to 558 in 7596fe1
There was an element already identified by the same key so the previous datum wasn't removed, it was updated. And in the update step there's the assumption that we only draw what's needed, these lines don't "undraw" or remove the first line. Lines 567 to 578 in 7596fe1
One way to fix this is by removing the first |
#351 fixed this issue. |
Actually it didn't, I still see the bug, reopening. |
After looking at the
Both refer to the same datum, so when the key function twice is called the outputs are the same, therefore for d3.selection it's an update. What we want is to use a new datum in
After #351 was merged the key function considers both I think the pattern to update
The above works, I'll mention this in the public docs. |
The text was updated successfully, but these errors were encountered: