Download png button not working in shiny app
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
Hi:
I've developed a Shiny app that uses Plotly. I've been reported several times a problem when exporting plotly plots that I am not able to solve and, even worse, I am not able to reproduce.
The app is at my github account (it's called memapp) and also at CRAN repositories, plots are ggplots coverted to plotly using ggplotly and rendered with renderPlotly.
This is the exporting window as usual, only available format is png, the image is correct:
But in some systems, when people try to export a plot, the window turns to this one, only svg vectorial file available.
The exported image is not readable, at least by some online software I've tried.
This is the pastebin of the svg file:
My app is hosted online on a server running linux, this error happens when they run the app locally or at my server, so I guess it is not a problem of my app and it is something dependent on the OS of the client. People reporting this problem uses Windows OS (10 for sure, 7 or 8 I am not sure 100%).
Any clues of what's happening? What does Plotly check when exporting to png or svg files that can make certain systems not to allow to export to png?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the export behavior in the memapp Shiny application, focusing on plots converted with ggplotly and rendered with renderPlotly. Compare PNG and SVG export behavior on the reported Windows systems using the linked screenshots and SVG pastebin; done means identifying a reproducible cause or documented export limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, r
- Domain
- data-visualization, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100