Skip to content

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

Closed
damiarita opened this issue Dec 27, 2017 · 8 comments
Closed

Legend covers graph when saving as png #2224

damiarita opened this issue Dec 27, 2017 · 8 comments

Comments

@damiarita
Copy link

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
Screenshot

And this is the png I get once saved:
Saved PNG

@etpinard
Copy link
Contributor

When I save a graph as a png

How are you doing that? Using the modebar button, through the plot.ly export services or something else?

@damiarita
Copy link
Author

Hi @etpinard

Thanks for your reply

I use the save as PNG button. The one that has a photo camera on it

@etpinard
Copy link
Contributor

Thanks.

In this case, this ticket is a duplicate of #1576 - which offers a workaround.

@damiarita
Copy link
Author

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

@damiarita
Copy link
Author

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

@etpinard
Copy link
Contributor

Here's a working solution: https://jsfiddle.net/n11h2zm6/7/

@damiarita
Copy link
Author

Perfect. Thanks!

@rDuinoStar
Copy link

Here's a working solution: https://jsfiddle.net/n11h2zm6/7/

Can you reshare your solution? Thanks!

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

No branches or pull requests

3 participants