-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Legend covers graph when saving as png #2224
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
Comments
How are you doing that? Using the modebar button, through the plot.ly export services or something else? |
Hi @etpinard Thanks for your reply I use the save as PNG button. The one that has a photo camera on it |
Thanks. In this case, this ticket is a duplicate of #1576 - which offers a workaround. |
Hi, Thanks for your reply. I added the modeBarButtonsToRemove and modeBarButtonsToAdd to the last paramenter. But it doesn't help. I am creating a fiddle to show my case |
This is my Fiddle: https://jsfiddle.net/damiarita/n11h2zm6/6/ You will see that depending on how big you make the right side, you will get the correct graph when you click "Run". However, even if the graph shows OK on the browser, it saves badly |
Here's a working solution: https://jsfiddle.net/n11h2zm6/7/ |
Perfect. Thanks! |
Can you reshare your solution? Thanks! |
I love this library and use it for a dashboard I am building for my company.
I have this issue. When I save a graph as a png, the legend covers de graph partially or totally. On the website, it looks good, though.
This is a screenshot of the graph as I see it on the website

And this is the png I get once saved:

The text was updated successfully, but these errors were encountered: