Skip to content

Add the zoom export parameter to the relevant method#13

Merged
chekos merged 1 commit intochekos:masterfrom
joaopalmeiro:add-zoom-export-paramater
Mar 25, 2021
Merged

Add the zoom export parameter to the relevant method#13
chekos merged 1 commit intochekos:masterfrom
joaopalmeiro:add-zoom-export-paramater

Conversation

@joaopalmeiro
Copy link
Contributor

Hi! 😄

I was using this package (thanks!) yesterday and noticed that the export_chart() method does not have a parameter for the zoom one, according to the Datawrapper documentation. If I understand correctly, this parameter is basically what allows you to "scale" the images in PNG format, in order to generate images with better quality/resolution, while the scale parameter is for the PDF format.

In this way, this PR, if considered relevant, simply adds a new parameter (zoom) to the export_chart() method, in order to be able to customize the scale when exporting PNGs (there were also some whitespaces removed when I saved the file, but since they were small adjustments, I thought about keeping them — I hope it is ok). I also tested this approach here (with a monkey patch).

Feel free to ask for clarification or to suggest changes. I hope this tiny PR can be useful! 😄

@chekos chekos self-assigned this Mar 15, 2021
@chekos chekos added the enhancement New feature or request label Mar 15, 2021
@chekos
Copy link
Owner

chekos commented Mar 15, 2021

I'll review this week! Apologies for the delay!

@chekos
Copy link
Owner

chekos commented Mar 25, 2021

Looks great!!

@chekos chekos merged commit d291c24 into chekos:master Mar 25, 2021
@joaopalmeiro
Copy link
Contributor Author

Awesome, thanks! 😄

@joaopalmeiro joaopalmeiro deleted the add-zoom-export-paramater branch December 13, 2022 13:13
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

Successfully merging this pull request may close these issues.

2 participants