Skip to content

Add graphType to key #351

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

Merged

Conversation

Linho1219
Copy link
Contributor

@Linho1219 Linho1219 commented May 24, 2025

Add the graphType as part of the key during data join.

Before: After a join it could be possible that existing plots were left behind and never undraw, check this comment for more details #329 (comment)

After: After a join, because the key contains more properties (combination of [function to graph, graphType]) the old datum would be considered unmatched so it'd get removed, then the new datum gets drawn as if it was new.

Fixes #344, #329

@Linho1219
Copy link
Contributor Author

/rebase

Add the graphType to the key to handle graphType updates on the same function.

Fix mauriciopoppe#344.
@github-actions github-actions bot force-pushed the fix-scattered-not-removed branch from 8467941 to 2148355 Compare May 24, 2025 13:25
@Linho1219
Copy link
Contributor Author

Rebased. Now checks should also pass.

@mauriciopoppe mauriciopoppe merged commit 2cb29d5 into mauriciopoppe:master May 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Old graphs not removed when updating data with scattered graph
2 participants