angular-plotly icon indicating copy to clipboard operation
angular-plotly copied to clipboard

Plotly error "Resize must be passed a displayed plot div element."

Open gdurand opened this issue 8 years ago • 1 comments

When resizing a window while a plot is not visible, plotly logs this error. To fix this you can add this test in onResize() (the same check as in plotly that triggers this error):

let e = window.getComputedStyle(graph).display;
if ( !e || "none" === e) return;

I don't know if this has an impact on the onResize() functionality.

gdurand avatar Jan 23 '18 15:01 gdurand

i think we should use Plotly.relayout instead of Plotly.plots.resize

pfeatherstone avatar Jun 05 '20 19:06 pfeatherstone