Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 08e77fa

Browse files
committed
swap out Plotly.newPlot with Plotly.react
Solves issues from plotly/plotly.js#2423
1 parent 9478e4f commit 08e77fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Graph.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class PlotlyGraph extends Component {
7777
if (animate && hasPlotted && figure.data.length === gd.data.length) {
7878
return Plotly.animate(id, figure, animation_options);
7979
} else {
80-
return Plotly.newPlot(id, figure.data, figure.layout, config).then(() => {
80+
return Plotly.react(id, figure.data, figure.layout, config).then(() => {
8181
this.bindEvents(props);
8282
this.setState({hasPlotted: true});
8383
});

0 commit comments

Comments
 (0)