Skip to content

Commit 325a36a

Browse files
hide name from within hovertemplate
1 parent 0646966 commit 325a36a

File tree

1 file changed

+1
-2
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref):
389389
]:
390390
hover_lines = [k + "=" + v for k, v in mapping_labels.items()]
391391
trace_patch["hovertemplate"] = hover_header + "<br>".join(hover_lines)
392+
trace_patch["hovertemplate"] += "<extra></extra>"
392393
return trace_patch, fit_results
393394

394395

@@ -1445,8 +1446,6 @@ def make_figure(args, constructor, trace_patch={}, layout_patch={}):
14451446
)
14461447
if trace_spec.constructor in [go.Bar, go.Violin, go.Box, go.Histogram]:
14471448
trace.update(alignmentgroup=True, offsetgroup=trace_name)
1448-
if trace_spec.constructor not in [go.Parcats, go.Parcoords]:
1449-
trace.update(hoverlabel=dict(namelength=0))
14501449
trace_names.add(trace_name)
14511450

14521451
# Init subplot row/col

0 commit comments

Comments
 (0)