Skip to content

Commit 35e4d32

Browse files
committed
plot_api: make Plotly.redraw go through a round of clean data/layout
- 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.
1 parent 920a333 commit 35e4d32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

+3
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ Plotly.redraw = function(gd) {
473473
throw new Error('This element is not a Plotly plot: ' + gd);
474474
}
475475

476+
helpers.cleanData(gd.data, gd.data);
477+
helpers.cleanLayout(gd.layout);
478+
476479
gd.calcdata = undefined;
477480
return Plotly.plot(gd).then(function() {
478481
gd.emit('plotly_redraw');

0 commit comments

Comments
 (0)