Skip to content
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

Add transparent parameter to export_chart()? #347

Open
SaraLanclos opened this issue May 31, 2023 · 4 comments
Open

Add transparent parameter to export_chart()? #347

SaraLanclos opened this issue May 31, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@SaraLanclos
Copy link

Hello!

Would it be possible to add the transparent parameter to export_chart() in PNG/PDF/SVG?

This exists in the Datawrapper API (https://developer.datawrapper.de/docs/exporting-as-pdfsvg) and it would be very helpful to have when creating Datawrapper charts through Python! Thank you!!

@SaraLanclos SaraLanclos added the enhancement New feature or request label May 31, 2023
@chekos
Copy link
Owner

chekos commented May 31, 2023

Sure thing! Thanks for including the link to the documentation. Makes things a lot easier.

@chekos chekos self-assigned this May 31, 2023
@SaraLanclos
Copy link
Author

Thank you!! I appreciate it! I am trying, with no success, to figure out a work around!

@chekos
Copy link
Owner

chekos commented May 31, 2023

Just released version 0.5.2! This has the transparent parameter in export_chart() (defaults to False)

Should be as easy as just adding transparent=True to your export_chart() code.

Just update datawrapper (pip install --upgrade datawrapper). Let me know if it works

@SaraLanclos
Copy link
Author

Thank you so much for adding this so quickly!!! It works!

Thank you thank you! Have a lovely day!

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

No branches or pull requests

2 participants