Skip to content

feature request: when downloading plot as png using the modebar button, use the current size of the plot as the size of the png. #935

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

Closed
finger563 opened this issue Apr 10, 2017 · 2 comments

Comments

@finger563
Copy link

Currently it does not use the size of the plot as it has been rendered into the browser. The data ranges and such are all the same, but since the size is different the legend may overlap parts that it did not when viewed in the browser and the aspect ratio may be different.

@cpsievert
Copy link
Collaborator

Duplicate of plotly/plotly.js#1576

You should be able to replicate the workaround with a combination of config() and htmlwidgets::JS()

@cpsievert
Copy link
Collaborator

Closing since I won't be making any changes in the R package to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants