plotly / plotly/plotly.R

Download png button not working in shiny app

未关闭
#1,240 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

shiny
主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在 memapp Shiny application 中复现导出行为,重点关注使用 ggplotly 转换并通过 renderPlotly 渲染的图表。使用链接的屏幕截图和 SVG pastebin,比较所报告的 Windows 系统上的 PNG 和 SVG 导出行为;完成的标准是确定一个可复现的原因或已记录的导出限制。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, r
领域
data-visualization, web-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。