Skip to content
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

Clean data & layout on Plotly.redraw #947

Merged
merged 2 commits into from
Sep 21, 2016
Merged

Clean data & layout on Plotly.redraw #947

merged 2 commits into from
Sep 21, 2016

Conversation

etpinard
Copy link
Contributor

fixes #942

... which turned out to be an easy fix. All we had to do was to make Plotly.redraw go through the cleanData to make sure the newly (if any) added traces have a uid field - which is now used in the key function in the scatter plot method since @rreusser 's animation PR #802

- to bring it on-par with Plotly.plot
- fixes #942 by properly supplying uid to new traces
  which are now required by the Scatter.plot method.
Copy link
Contributor

@rreusser rreusser left a comment

Choose a reason for hiding this comment

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

This looks great. I love that it's so easy. Is this generalizable to other places where we may wish to allow the number of traces to be changed in a semi-unexpected way?

@rreusser
Copy link
Contributor

💃🏻 it!

@etpinard
Copy link
Contributor Author

etpinard commented Sep 21, 2016

Is this generalizable to other places where we may wish to allow the number of traces to be changed in a semi-unexpected way?

Plotly.addTraces already has a cleanData step here and we don't support (official) support any other way of adding traces to an existing graph.

@etpinard etpinard merged commit 69fe83b into master Sep 21, 2016
@etpinard etpinard deleted the on-par-redraw branch September 21, 2016 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invisible traces in 1.17.0+ when using Plotly.redraw
2 participants