Skip to content

Commit 0bb6493

Browse files
committed
delimiter
1 parent ed4ba16 commit 0bb6493

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/python/plotly/plotly/express/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
399399
if args["hover_data"][k]:
400400
if isinstance(args["hover_data"][k], str):
401401
mapping_labels_copy[k] = v.replace(
402-
"}", ":%s}" % args["hover_data"][k]
402+
"}", "%s}" % args["hover_data"][k]
403403
)
404404
else:
405405
_ = mapping_labels_copy.pop(k)

packages/python/plotly/plotly/express/_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"or array_like objects",
186186
"or a dict with column names as keys, with values True (for default formatting)",
187187
"False (in order to remove this column from hover information),",
188-
"or a formatting string, for example '.3f'."
188+
"or a formatting string, for example ':.3f' or '|%a'."
189189
"Values from these columns appear as extra data in the hover tooltip.",
190190
],
191191
custom_data=[

packages/python/plotly/plotly/tests/test_core/test_px/test_px_hover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_skip_hover():
2121
def test_composite_hover():
2222
df = px.data.tips()
2323
hover_dict = OrderedDict(
24-
{"day": False, "sex": True, "time": False, "total_bill": ".1f"}
24+
{"day": False, "sex": True, "time": False, "total_bill": ":.1f"}
2525
)
2626
fig = px.scatter(
2727
df,

0 commit comments

Comments
 (0)