Skip to content

Commit 73ff9d8

Browse files
authored
Merge pull request #422 from palewire/patch-17
Add new `hide_title` option to `update_description`
2 parents 5ccb520 + 0dcb0bf commit 73ff9d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

datawrapper/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ def update_description(
838838
number_append: str | None = None,
839839
number_format: str | None = None,
840840
number_divisor: int | None = None,
841+
hide_title: bool = False,
841842
) -> dict:
842843
"""Update a chart's description attributes
843844
@@ -865,6 +866,8 @@ def update_description(
865866
The format number
866867
number_divisor : str, optional
867868
A multiplier or divisor for the numbers
869+
hide_title : bool
870+
Whether or not to hide the chart title
868871
869872
Returns
870873
-------
@@ -877,7 +880,7 @@ def update_description(
877880
If no updates are submitted.
878881
"""
879882
# Load the query with the provided parameters
880-
_query: dict[str, Any] = {}
883+
_query: dict[str, Any] = {"hide-title": hide_title}
881884
if source_name:
882885
_query["source-name"] = source_name
883886
if source_url:

0 commit comments

Comments
 (0)