Skip to content

Commit

Permalink
Add new hide_title option to update_description
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire authored Dec 20, 2024
1 parent 5ccb520 commit 0dcb0bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datawrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
-------
Expand All @@ -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:
Expand Down

0 comments on commit 0dcb0bf

Please sign in to comment.