Plotly.js: When resizing the webpage, the modebar disappears for all plots except the last one.

Created on 25 Apr 2019  路  4Comments  路  Source: plotly/plotly.js

After generating html + JS div for web output for two or more plots (in my case with Python but I don't think this is the source of the issue), from the 1.46.0 of plotly.min.js, when the webpage is resized, the modebar disappears for all plots except the last one.

Here is an example. Run the code and resize the browser or move the vertical splitter :
https://jsfiddle.net/be1s2wur/

Navigator used : firefox 66.0.3

The issue doesn't appear in the version 1.45.3.
The issue is still present in the 1.47.3 (current) version.

bug

Most helpful comment

Indeed, it works ! I have now to play more with the include_plotlyjs (plotly.offline.plot) parameter.

All 4 comments

Thanks very much for reporting.

This is probably a side-effect of https://github.com/plotly/plotly.js/pull/3589

@jmonticolo in your example, you are loading plotly.js twice. By removing the second <script> tag, the issue seems to go away: https://jsfiddle.net/p0c83yzq/

@etpinard Should I investigate this further?

Should I investigate this further?

Let's wait until we can get more info from @jmonticolo before investigating further.

Indeed, it works ! I have now to play more with the include_plotlyjs (plotly.offline.plot) parameter.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WG- picture WG-  路  3Comments

maxwell8888 picture maxwell8888  路  3Comments

hashimmoosavi picture hashimmoosavi  路  3Comments

etpinard picture etpinard  路  3Comments

tim-sauchuk picture tim-sauchuk  路  3Comments