-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Heatmap PNG Download Missing Plot on macOS/iOS/iPadOS Safari and other iOS/iPadOS WebKit-based browsers #6606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@lvlte are you interested to open another PR? |
Yes I'm looking into it. |
This is driving me nuts, I'm on a Monterey VM with Safari 15.1 and I got random results.. Surprisingly I obtain an empty plot very rarely, and when it happens if I re-try then it works the second time. I don't know what can cause this but changing the version from 2.20 to 2.23 doesn't seem to make a difference. @questionlp did you experienced such random results ? ie. if you retry several times to download the same plot ? also after resizing the browser window ? |
I'm on macOS Ventura with Safari 16.4 and it seems to not include the plot on the first download of the chart, but it seems to work on successive attempts. Refreshing the page and downloading the PNG will include the plot. I have set a fixed height/width on the chart download image; but, not a fixed size on the chart itself. Closing and opening a new window and downloading the PNG sometimes leads to a missing plot; but, the plot is included in subsequent downloads. It's definitely repeatable when opening a new private window, loading the page and saving the chart on the first attempt (missing plot). Reloading a private window or subsequent downloads includes the plot in the PNG. |
Yes I confirm the first download attempt in a new private window leads to an "empty plot" every time, and the second attempt is working fine. In fact it appears that the bug concerns all plots having one or more svg @archmoj I don't think it is a regression, the bug occurs on all versions from 2.23.0 back to 2.17.0, and I just tested version 2.0.0, it's there, seems like it's been hiding for a long time. |
Yes, using plotly.js v2.24.2 on mobile iOS, when clicking download icon, the plots are missing but the grid is rendered. I've noticed this for the last year on an iphone 7 running iOS 15.7.8 - I don't know what version of safari that is. Last week, testing on the latest iphone 14 running iOS 16.5.1 it still happens. Thank you for the tip of downloading twice - that works! |
Any progress on this bug? |
I'm on Mac Sonoma 14.6.1 with Safari 17.6 and the issue is still there. Any progress on this bug ? FYI, I don't know if it's related but sometimes I received this error only on Safari: |
Something that I noticed while checking out 2.23.0, and with older versions of Plotly.js, is that saving the image of a heatmap using the built-in download plot as a PNG file does not include the heatmap image in Safari. Checking back with previous versions, including 2.20.0, the behavior exists there as well. It's included in the PNG download in Firefox and Chrome.
Since it seems to be an issue with WebKit, it would be a decent assumption that the issue would also appear on other iOS and iPadOS browsers that use WebKit as a rendering engine.
Screenshot: https://imgur.com/a/c4iCy9n
Live example (v2.20.0): https://graphs.wwdt.me/shows/monthly-aggregate-score-heatmap
The text was updated successfully, but these errors were encountered: