plotly / plotly/plotly.R

Download png button not working in shiny app

Abierto
#1,240 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

shiny
Lenguaje dominante
R
Estrellas
2.7k
Forks
641
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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:

http://ibb.co/h3Kyrn

But in some systems, when people try to export a plot, the window turns to this one, only svg vectorial file available.

http://ibb.co/jEi2HS

The exported image is not readable, at least by some online software I've tried.

This is the pastebin of the svg file:

https://pastebin.com/a3CLDTYN

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?

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el comportamiento de exportación en la aplicación Shiny memapp, centrándote en los gráficos convertidos con ggplotly y renderizados con renderPlotly. Compara el comportamiento de exportación de PNG y SVG en los sistemas Windows indicados usando las capturas de pantalla enlazadas y el pastebin de SVG; se considera completado cuando se haya identificado una causa reproducible o una limitación de exportación documentada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, r
Área
data-visualization, web-dev
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.