Skip to content

Commit

Permalink
js: fix missing plot-pane redraws
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hartmann authored and JackUrb committed May 3, 2023
1 parent 9cf40ad commit b29f257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/panes/PlotPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ var PlotPane = (props) => {
d.opacity = 1.0;
});

// required for Plotly.react to register the update
content.layout.datarevision = props.version;

// draw / redraw plot with layout-options
Plotly.react(contentID, data.concat(smooth_data), content.layout, {
showLink: true,
linkText: 'Edit',
Expand Down

0 comments on commit b29f257

Please sign in to comment.