File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ HTMLWidgets.widget({
113
113
flex . appendChild ( container ) ;
114
114
}
115
115
}
116
-
116
+
117
117
// finally, insert the flexbox inside the htmlwidget container,
118
118
// but before the plotly graph div
119
119
graphDiv . parentElement . insertBefore ( flex , graphDiv ) ;
@@ -179,13 +179,7 @@ HTMLWidgets.widget({
179
179
// this is essentially equivalent to Plotly.newPlot(), but avoids creating
180
180
// a new webgl context
181
181
// https://github.com/plotly/plotly.js/blob/2b24f9def901831e61282076cf3f835598d56f0e/src/plot_api/plot_api.js#L531-L532
182
-
183
- // TODO: restore crosstalk selections?
184
- Plotly . purge ( graphDiv ) ;
185
- // TODO: why is this necessary to get crosstalk working?
186
- graphDiv . data = undefined ;
187
- graphDiv . layout = undefined ;
188
- var plot = Plotly . plot ( graphDiv , x ) ;
182
+ var plot = Plotly . react ( graphDiv , x ) ;
189
183
}
190
184
191
185
// Trigger plotly.js calls defined via `plotlyProxy()`
You can’t perform that action at this time.
0 commit comments