Skip to content

Fix #344 Scatter graph updates #345

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

Closed

Conversation

Linho1219
Copy link
Contributor

@Linho1219 Linho1219 commented Apr 29, 2025

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

Fixes: #344

Add the graphType to the key to handle graphType updates on the same function.
Copy link
Owner

@mauriciopoppe mauriciopoppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I left some comments.

return d.fn || d.r || d.x || d.text
// Add the graphType to the key to handle graphType updates on the same function (#344)
return JSON.stringify({
function: d.fn || d.r || d.x || d.text,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I think about it, we could plot:

data: [
  {fn: 'x'},
  {fn: 'x'},
]

In which case the key would be x for both, each one should have a different key instead. I filed another bug to track this #346

@Linho1219 Linho1219 closed this by deleting the head repository May 18, 2025
@mauriciopoppe
Copy link
Owner

Reopen this one as well if you want

@Linho1219 Linho1219 mentioned this pull request May 24, 2025
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