plotly / plotly/plotly.R

Download png button not working in shiny app

Đang mở
#1,240 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

shiny
Ngôn ngữ chính
R
Star
2.7k
Fork
641
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành vi xuất trong ứng dụng Shiny memapp, tập trung vào các biểu đồ được chuyển đổi bằng ggplotly và render bằng renderPlotly. So sánh hành vi xuất PNG và SVG trên các hệ thống Windows được báo cáo bằng cách sử dụng các ảnh chụp màn hình được liên kết và pastebin SVG; được xem là hoàn thành khi xác định được nguyên nhân có thể tái hiện hoặc một giới hạn xuất đã được ghi nhận.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, r
Lĩnh vực
data-visualization, web-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.