-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Plotly#redraw (1.20.4.min.js) appears to not clean up properly #1218
Comments
In live example form: http://codepen.io/rsreusser/pen/xRpeYX?editors=0010 |
Here's a slight modification in which I pulled in http://codepen.io/rsreusser/pen/ObzGZG?editors=1010 (Thanks for reporting!) |
@rreusser That was fast! ;) |
Yeah, definitely seems like a reasonable workaround. (Also, of course only one of two plots actually needs a clone.) I think there was a bit of discussion related to this, so I'll check around and get @etpinard's input before digging further at the moment. |
Has there been any internal discussion so far on this issue @rreusser ? I'm using the latest version (1.24.2) and it appears to still be an issue. |
For reference: the clearest illustration of the result that I can see is below. The first plot gets a phantom trace that's not anywhere in its data. I think it's the result of the second trace dumping its SVG output into the first trace because it looks up something by Digging a bit deeper: there just aren't that many properties on the top level Long story short: duplicate My conservative suggestion was a deep clone which may be unnecessary. Perhaps a shallow clone is enough to fix the cc @etpinard @alexcjohnson for second opinion |
Gah, sorry. I thought it was cross-polluting the data, but I think I misinterpreted the input/output. |
I wanted to report a new bug but probably it is the same bug reported here? In the app the traces are added and removed, but after few operations, there remain some gridlines. Observed with version 1.27.1. See this code pen |
Has there been any progress with this issue? Or is there a roadmap / idea when this can be expected to be resolved? |
This seems to have been solved, partially by #2227 and partially by something before it. |
I have the following, simple code (also see attached zip for standalone:
What I get is the following:
As you can see, the upper plot is being updated with
Plotly#redraw
while the lower plot is updated usingPlotly#newPlot
.I would expect those two invocations to produce the same result. However, in the one using
Plotly#redraw
, it appears as thought the previous 2nd y-axis and the associated trace is not cleaned up properly. You can also see that when the mouse is hovered over the trace, the 'old' trace is not (correctly so) taken into account, i.e. no hover-text appears over the 'old' trace.I have verified this behaviour on a Mac OS 10.10.5 and the following browsers:
plotly-multiple-axes.html.zip
The text was updated successfully, but these errors were encountered: