From 0dcb0bf7b065ee517127a8373348f99be3de451d Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Fri, 20 Dec 2024 13:45:02 -0500 Subject: [PATCH] Add new `hide_title` option to `update_description` --- datawrapper/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datawrapper/__main__.py b/datawrapper/__main__.py index 87b37ab..f406205 100644 --- a/datawrapper/__main__.py +++ b/datawrapper/__main__.py @@ -838,6 +838,7 @@ def update_description( number_append: str | None = None, number_format: str | None = None, number_divisor: int | None = None, + hide_title: bool = False, ) -> dict: """Update a chart's description attributes @@ -865,6 +866,8 @@ def update_description( The format number number_divisor : str, optional A multiplier or divisor for the numbers + hide_title : bool + Whether or not to hide the chart title Returns ------- @@ -877,7 +880,7 @@ def update_description( If no updates are submitted. """ # Load the query with the provided parameters - _query: dict[str, Any] = {} + _query: dict[str, Any] = {"hide-title": hide_title} if source_name: _query["source-name"] = source_name if source_url: