diff --git a/datawrapper/__main__.py b/datawrapper/__main__.py index 051c193..1a97835 100644 --- a/datawrapper/__main__.py +++ b/datawrapper/__main__.py @@ -474,6 +474,7 @@ def export_chart( zoom: int = 2, scale: int = 1, border_width: int = 20, + transparent: bool = False, output: str = "png", filepath: str = "./image.png", display: bool = False, @@ -498,6 +499,8 @@ def export_chart( Defines the multiplier for the pdf size, by default 1 border_width : int, optional Margin arouund the visualization, by default 20 + transparent : bool, optional + Set to `True` to export your visualization with a transparent background. output : str, optional One of png, pdf, or svg, by default "png" filepath : str, optional @@ -523,6 +526,7 @@ def export_chart( "zoom": zoom, "scale": scale, "borderWidth": border_width, + "transparent": transparent } _header = self._auth_header