Update component did update to plotly chart
@@ -96,6 +96,10 @@ class PlotlyChart extends React.Component<PlotParams, {}> {
this.draw(this.props);
}
+ public componentDidUpdate() {
+ this.draw(this.props);
+ }
+
public componentWillUnmount() {
if (this.container) {
Plotly.purge(this.container);
